mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Implicit temporary-directory grants can bypass filesystem restrictions and protected project metadata. Moving an ancestor can also relocate protected paths beyond their pathname exclusions. ## What changed - Route process scratch access through the normal Seatbelt exclusion rules so it respects unreadable paths, read-only paths, and protected project metadata. - Protect the parents of both logical symlink paths and their resolved targets against relocation. - Apply privileged daemon socket protections after all grants, deny access to the socket directory itself, and prevent ancestor removal or renaming while allowing sibling writes. GitOrigin-RevId: f4cbcf5867e204b0cded0812aac1851b3d444328