Use permission profiles throughout sandbox execution (#36183)

## What changed

- Pass the canonical `PermissionProfile` through execution requests, sandbox
  selection, escalation, and the exec server instead of carrying separate
  derived filesystem and network policies.
- Derive runtime sandbox policies from the effective profile at their points of
  use, including after applying additional permissions.
- Update sandbox and escalation tests to inspect policies through the profile.

GitOrigin-RevId: 695b82ea94f5289516b0933bb23074cb2dcce8ac
This commit is contained in:
viyatb-oai authored and copyberry committed 2026-07-30 16:30:32 +00:00
1 parent ceb4bc72c4
commit 0dcad0c972
15 files changed
+74 -166

No files matched your search

@@ -155,8 +155,7 @@ impl ExecCommandHandler {
// permissions config below. Consult the configured platform-sandbox requirement before
// deciding whether parsing may continue without that base path.
let sandbox = SandboxManager::new().select_initial(
&turn.file_system_sandbox_policy(),
turn.network_sandbox_policy(),
&turn.permission_profile,
SandboxablePreference::Auto,
turn.windows_sandbox_level,
turn.network.is_some(),