Files
codex/codex-rs
viyatb-oai df8dd9a56b Preserve Linux sandbox restrictions across writable symlink aliases (#64415)
## 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
2026-11-28 03:17:03 +00:00
..
…
…
…