mirror of
https://github.com/openai/codex.git
synced 2026-12-01 00:20:48 +00:00
## Why A `.git` pointer can resolve to a Git directory inside another writable root. Broader Seatbelt grants or later bubblewrap mounts can leave that directory writable despite its metadata protections. ## What changed Include resolved Git directories in read-only exclusions for broader writable roots on Linux and macOS. Resolve symlink aliases when locating exclusion targets and retain explicit policy overrides. ## Testing Add regression tests for Git directories reached directly or through symlink aliases in another writable root, and for linked worktree metadata under the macOS temporary directory. Verify that metadata writes are denied while ordinary files in the surrounding writable root remain writable. GitOrigin-RevId: 6971f1cf35008d23eaeb0d02a9c61bee7cf83b12