Skip to content

Allow unrelated namespace mounts in Linux sandbox socket checks - #46535

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9a1d2a69e5bd3f8d09b1de7cf998ee6d9c6bb980
Sep 19, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9a1d2a69e5bd3f8d09b1de7cf998ee6d9c6bb980

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Allow unrelated namespace mounts in Linux sandbox socket checks

Why

Namespace mounts can have roots such as mnt:[inode] or net:[inode] that are not filesystem paths. Treating every mount root as a path rejects these unrelated mounts and prevents sandbox startup.

What changed

Parse mount roots as paths only for the daemon socket's filesystem. Continue validating every mount destination and checking mount ancestry, nested mounts, and socket aliases.

Testing

Add regression cases for namespace mounts, invalid destinations, and socket aliases, both with and without a mount ID. Extend the socket-isolation integration fixture with an unrelated network namespace mount to exercise successful startup and rejection of a real socket alias.

## Why

Namespace mounts can have roots such as `mnt:[inode]` or `net:[inode]` that are not filesystem paths. Treating every mount root as a path rejects these unrelated mounts and prevents sandbox startup.

## What changed

Parse mount roots as paths only for the daemon socket's filesystem. Continue validating every mount destination and checking mount ancestry, nested mounts, and socket aliases.

## Testing

Add regression cases for namespace mounts, invalid destinations, and socket aliases, both with and without a mount ID. Extend the socket-isolation integration fixture with an unrelated network namespace mount to exercise successful startup and rejection of a real socket alias.

GitOrigin-RevId: 9a1d2a69e5bd3f8d09b1de7cf998ee6d9c6bb980
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9a1d2a69e5bd3f8d09b1de7cf998ee6d9c6bb980 branch from e5857a3 to 22dea11 Compare September 19, 2026 00:31
@copyberry
copyberry Bot merged commit 22dea11 into main Sep 19, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9a1d2a69e5bd3f8d09b1de7cf998ee6d9c6bb980 branch September 19, 2026 00:31
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2026

This branch was successfully deployed

1 active deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants