Skip to content

Mount a minimal /dev in full-filesystem Bubblewrap sandboxes - #37349

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1d91fe44affd792d2777adae8f2cce6d85d14103
Aug 7, 2026
Merged

Mount a minimal /dev in full-filesystem Bubblewrap sandboxes#37349
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1d91fe44affd792d2777adae8f2cce6d85d14103

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Mount a minimal /dev in full-filesystem Bubblewrap sandboxes

Why

Binding the full host filesystem into a network-isolated Bubblewrap sandbox also
inherits the host's device tree.

What changed

  • Overlay /dev with Bubblewrap's minimal device filesystem while preserving
    the root bind's nodev behavior.
  • Bind /dev/shm back into the sandbox when available so host and sandbox
    processes can continue to share memory files.

Testing

Add a managed-proxy integration test that verifies standard device nodes remain
usable, /dev is not the host directory, and /dev/shm writes are shared with
the host.

## Why

Binding the full host filesystem into a network-isolated Bubblewrap sandbox also
inherits the host's device tree.

## What changed

- Overlay `/dev` with Bubblewrap's minimal device filesystem while preserving
  the root bind's `nodev` behavior.
- Bind `/dev/shm` back into the sandbox when available so host and sandbox
  processes can continue to share memory files.

## Testing

Add a managed-proxy integration test that verifies standard device nodes remain
usable, `/dev` is not the host directory, and `/dev/shm` writes are shared with
the host.

GitOrigin-RevId: 1d91fe44affd792d2777adae8f2cce6d85d14103
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1d91fe44affd792d2777adae8f2cce6d85d14103 branch from e74fa28 to 912524d Compare August 7, 2026 01:31
@copyberry
copyberry Bot merged commit 912524d into main Aug 7, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1d91fe44affd792d2777adae8f2cce6d85d14103 branch August 7, 2026 01:32
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
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.

2 participants