mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
## Why Linux filesystem rules that depend on `TMPDIR` or `HOME` need to keep the same meaning when shell snapshot replay changes the command environment. ## What changed Resolve `:tmpdir` entries and home-relative read-deny globs against the prepared launch environment. Omit `:tmpdir` entries when `TMPDIR` is unset or empty. Resolve relative temporary directories from the physical command working directory and verify that directory before and after bubblewrap sets up its mounts. Preserve process confinement when resolving paths makes the filesystem rules appear to grant full-disk access. Reject bindings that would change the grants enforced by legacy Landlock. ## Testing Add regression coverage for shell snapshot replay, working-directory changes, and preservation of Linux process confinement. GitOrigin-RevId: 07d4698ca7b30b0259193513145233ae1bdc7f19