Skip to content

docs(codex/claude-code): recommend a shared Ubuntu AppArmor profile - #1312

Open
Edd88-pixel wants to merge 1 commit into
coder:mainfrom
Edd88-pixel:eddy/bwrap-apparmor-1309
Open

Edd88-pixel wants to merge 1 commit into
coder:mainfrom
Edd88-pixel:eddy/bwrap-apparmor-1309

Conversation

@Edd88-pixel

@Edd88-pixel Edd88-pixel commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Ubuntu 24.04's bwrap-userns-restrict profile allows Codex to start but blocks the nested user namespace used by Claude Code's seccomp helper. The Codex README previously pointed users toward setup instructions that could introduce this incompatibility.

Changes

  • Document Claude Code's Linux sandbox prerequisites and the AppArmor profile shared by both agents.
  • Explain how to unload and disable the restrictive profile before loading its replacement, while keeping the user namespace restriction enabled.
  • Link the Codex README to the shared instructions.

Documentation-only change; no module runtime behavior or input changes.

Validation

  • Bun: bun test registry/coder-labs/modules/codex/main.test.ts registry/coder/modules/claude-code/main.test.ts — 81 passed.
  • Terraform: terraform test — Codex 20 passed, Claude Code 46 passed; terraform validate passed for both modules.

Fixes #1309.
Linear: REG-144.

@Edd88-pixel
Edd88-pixel marked this pull request as ready for review November 24, 2026 08:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codex/claude-code: Ubuntu 24.04 bwrap-userns-restrict profile breaks Claude Code's sandbox; suggest Claude Code's bwrap profile

1 participant