mirror of
https://github.com/openai/codex.git
synced 2026-11-29 00:00:54 +00:00
## Why Ordering writable binds by the spelled paths can put a parent mount after a child mount when symlinks are involved. The later bind can cover deny masks and read-only mounts that the sandbox already applied. ## What changed Group writable roots by their resolved mount destinations and bind each destination once, with parents before descendants. Map deny rules under writable aliases to their physical paths and apply them after read-only mounts. Reapply read-only mounts below each writable bind while preserving explicit write grants for narrower paths. ## Testing Add `bwrap` regression cases for a symlink to `/` paired with a project alias and for aliases to nested project directories. The cases check that denied files stay unreadable, read-only files resist writes, and explicitly writable children remain usable under restricted parents. GitOrigin-RevId: e8c677cbccae1d7b62cb566609074f8c8c14ddeb