Skip to content

Let bubblewrap create user namespaces in WPT triage - #8680

Merged
npaun merged 1 commit into
mainfrom
npaun/wpt-triage-bwrap-apparmor
Nov 19, 2026
Merged

npaun merged 1 commit into
mainfrom
npaun/wpt-triage-bwrap-apparmor

Conversation

@npaun

@npaun npaun commented Nov 19, 2026

Copy link
Copy Markdown
Member

Since the WPT updater's update job moved to ubuntu-24.04-16core (05a7669), Claude Code refuses to start the triage agent:

Error: sandbox required but unavailable: sandbox is enabled but cannot start here: Ubuntu's AppArmor
restriction on user namespaces stops bubblewrap here ("loopback: Failed RTM_NEWADDR: Operation not permitted").
  Refusing to start without a working sandbox (see sandbox.failIfUnavailable).

Ubuntu 24.04 enables kernel.apparmor_restrict_unprivileged_userns, so bubblewrap can't create the user namespaces the Bash sandbox needs. The triage step is continue-on-error, so the 2026-11-15 scheduled run still went green and opened a pull request containing only the bump.

This installs the AppArmor profile from Claude Code's sandboxing docs, which grants userns to /usr/bin/bwrap only. The alternative, setting the sysctl to 0, would lift the restriction for every process on the runner, including those the agent runs.

A manual run of the workflow from this branch verifies the fix; it opens its own pull request from a separate branch.

🤖 Generated with Claude Code

Since the update job moved to ubuntu-24.04, Claude Code refuses to
start the triage agent: Ubuntu 24.04 enables
kernel.apparmor_restrict_unprivileged_userns, so bubblewrap cannot
set up the Bash sandbox, and failIfUnavailable stops the run. The
step's continue-on-error hides this, and the scheduled run of
2026-11-15 opened a pull request containing only the bump.

Install the AppArmor profile from Claude Code's sandboxing docs,
which grants userns to /usr/bin/bwrap only. Lifting the restriction
with the sysctl instead would grant it to every process on the
runner, including those the agent runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@npaun
npaun marked this pull request as ready for review November 19, 2026 18:21
@npaun
npaun requested review from a team as code owners November 19, 2026 18:21
@npaun
npaun merged commit 2e8309f into main Nov 19, 2026
25 checks passed
@npaun
npaun deleted the npaun/wpt-triage-bwrap-apparmor branch November 19, 2026 18:23
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.

2 participants