Skip to content

codex: sandbox cannot create namespaces in a container with bubblewrap installed #1266

Open

Description

@Edd88-pixel

Current Behavior

During the review of #1258, @35C4n0r reported that sandboxed commands fail in a container even after installing bubblewrap:

bwrap: No permissions to create a new namespace, likely because the kernel does not allow non-privileged user namespaces. See <https://deb.li/bubblewrap> or <file:///usr/share/doc/bubblewrap/README.Debian.gz>.

The reviewer does not see the error on their local machine. A container runtime or host security restriction is suspected, but the cause has not been established. The Codex version, workspace image, host OS, and container security settings are still needed to reproduce it independently.

Steps to Reproduce

Reported by the reviewer:

  1. Install Codex and bubblewrap in the affected container workspace.
  2. Run codex sandbox echo "hello World".
  3. Observe the namespace permission error above.

Expected Behavior

Sandboxed commands should run in a supported workspace configuration. Identify the restriction and document or implement the appropriate fix at the module, template, or host layer, preserving sandbox isolation.

This follows up on #1251 and #1258, which cover prerequisite documentation and a non-fatal warning when bwrap is missing. An executable on PATH does not establish that namespace creation is permitted.

Activity

  1. linear-code commented on Nov 17, 2026

    @linear-code
  2. self-assigned this
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions