Repository navigation
Honor explicit Unix socket grants in the Linux managed sandbox - #45534
Merged
copyberry[bot] merged 1 commit intoSep 14, 2026
Conversation
## Why Linux proxy-routed sandboxing denied standalone Unix sockets even when the effective network policy enabled `dangerously_allow_all_unix_sockets`. ## What changed - Carry Unix socket permissions in `ManagedNetworkSandboxContext` and pass the prepared context through Linux sandbox launches with `--managed-network`. - Allow `AF_UNIX` socket creation in proxy-routed mode when `dangerously_allow_all_unix_sockets` is enabled, while preserving network namespace isolation and restrictions on other socket families. - Keep standalone Unix sockets denied by default and for path-only grants. Default missing fields in older serialized contexts to restrictive values. ## Testing Add coverage for policy preparation and transport, legacy deserialization, and malformed policy rejection. Add a Linux integration test covering default denial, path-only denial, and explicit allow-all access, while checking that direct TCP access and `AF_NETLINK`/`AF_VSOCK` sockets remain blocked. GitOrigin-RevId: 2695b945ad3e59fcb3faf7662d852a26650af16c
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/2695b945ad3e59fcb3faf7662d852a26650af16c
branch
from
September 14, 2026 22:40
67637cf to
99914f4
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/2695b945ad3e59fcb3faf7662d852a26650af16c
branch
September 14, 2026 22:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Honor explicit Unix socket grants in the Linux managed sandbox
Why
Linux proxy-routed sandboxing denied standalone Unix sockets even when the effective network policy enabled
dangerously_allow_all_unix_sockets.What changed
ManagedNetworkSandboxContextand pass the prepared context through Linux sandbox launches with--managed-network.AF_UNIXsocket creation in proxy-routed mode whendangerously_allow_all_unix_socketsis enabled, while preserving network namespace isolation and restrictions on other socket families.Testing
Add coverage for policy preparation and transport, legacy deserialization, and malformed policy rejection. Add a Linux integration test covering default denial, path-only denial, and explicit allow-all access, while checking that direct TCP access and
AF_NETLINK/AF_VSOCKsockets remain blocked.