MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / assertSecureSocketPath

Function assertSecureSocketPath

src/daemon/utils.ts:160–171  ·  view source on GitHub ↗
(socketPath: string)

Source from the content-addressed store, hash-verified

158}
159
160export 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
173function readPidFile(pidFile: string): string | null {
174 if (IS_WINDOWS) {

Callers 2

sendCommandFunction · 0.85
symlink.test.tsFile · 0.85

Calls 2

assertSecureRuntimeDirFunction · 0.85
assertSecurePathStatsFunction · 0.85

Tested by

no test coverage detected