mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why Shared filesystem capabilities must not grant access to another logon session's processes, threads, or IPC objects. A shared account's implicit owner rights can also allow another logon to rewrite an object's DACL. ## What changed - Grant full access in the token's default DACL only to the runner's logon SID, removing grants to Everyone and capability SIDs. - Add an `OWNER RIGHTS` entry granting only `READ_CONTROL` to suppress the owner's implicit `WRITE_DAC` access. - Close the new token handle if default DACL or privilege setup fails. ## Testing Add a Windows `AccessCheck` regression test verifying that process memory, thread creation, termination, query, and DACL modification rights remain available to the creating logon but are denied to a simulated other logon sharing the same owner and capability. GitOrigin-RevId: 94608466ee1b461fe10db1866e80b3988119bdfc