(socketPath: string)
| 158 | } |
| 159 | |
| 160 | export function assertSecureSocketPath(socketPath: string): void { |
| 161 | if (IS_WINDOWS) { |
| 162 | return; |
| 163 | } |
| 164 | assertSecureRuntimeDir(path.dirname(socketPath)); |
| 165 | assertSecurePathStats({ |
| 166 | label: 'Daemon socket', |
| 167 | filePath: socketPath, |
| 168 | stats: fs.lstatSync(socketPath), |
| 169 | expectedType: 'socket', |
| 170 | }); |
| 171 | } |
| 172 | |
| 173 | function readPidFile(pidFile: string): string | null { |
| 174 | if (IS_WINDOWS) { |
no test coverage detected