mirror of
https://github.com/openai/codex.git
synced 2026-11-12 21:20:34 +00:00
## Why Reapplying directory ACLs during registered sandbox setup can change permissions on existing files moved into the sandbox directory. ## What changed During `ProvisionOnly` setup for a registered runtime, verify both persistent sandbox directories' ACLs before writing them. Skip both writes when the explicit permissions match the expected policy, allowing additional inherited entries. If verification fails or either policy differs, apply the directory policies as before. ## Testing Add a regression test that repeats registered setup and verifies that a moved file remains unwritable by the sandbox group while a newly created file inherits write access. GitOrigin-RevId: fb199001fc554903064618b86562b2ff0d0384c5