Expand description
Owner-only directory lockdown: the Unix chmod 0700 equivalent on both
platforms. Single home for the DACL/chmod logic so the two callers
(ghidra-mcp::logging for the log dir, ghidra-worker-ctl::boot for the
per-boot token dir) cannot drift apart.
Functionsยง
- restrict_
to_ owner - Restrict
path(a directory) to the current user. On Unix this is a real0700; on Windows it replaces the DACL with a single owner-only ACE and marks it protected so no inheritedEveryone/BUILTIN\Usersgrant survives. Mirrorschmod 0700.