Skip to content

Chrome DevTools for coding agents

fix: create PID directory with secure permissions (0o700) (#2262)

artboy7fa95d3c33aa
diff --git a/src/daemon/daemon.ts b/src/daemon/daemon.ts
index a818edc7..7b888464 100644
--- a/src/daemon/daemon.ts
+++ b/src/daemon/daemon.ts
@@ -41,7 +41,7 @@ const pidDir = path.dirname(pidFilePath);
const currentUserUid = os.userInfo().uid;
try {
- fs.mkdirSync(pidDir, {recursive: true});
+ fs.mkdirSync(pidDir, {recursive: true, mode: 0o700});
if (os.platform() !== 'win32') {
// POSIX specific checks
try {