Files
viyatb-oai 5729aca45d Bind Linux sandbox paths before shell snapshot replay (#64388)
## 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
2026-11-27 22:29:24 +00:00
..