Skip to content

CI: find the bwrap AppArmor profile on the Ubuntu 26.04 runner image - #1741

Merged
currentbits merged 1 commit into
mainfrom
ci/bwrap-apparmor-profile-26-04
Oct 29, 2026
Merged

currentbits merged 1 commit into
mainfrom
ci/bwrap-apparmor-profile-26-04

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Why

ubuntu-latest has started rolling to an Ubuntu 26.04 image. Its apparmor-profiles package (5.0.2-0ubuntu1~26.04.1) no longer ships /usr/share/apparmor/extra-profiles/bwrap-userns-restrict. The "Allow bubblewrap user namespaces for the Codex sandbox proof" step then fails at install: cannot stat … before any test runs. Seen on PR #1740's ubuntu test job; main passed hours earlier on the old image.

Change

In that step, when kernel.apparmor_restrict_unprivileged_userns=1:

  1. Use the bwrap profile from extra-profiles (24.04) or one already in /etc/apparmor.d (newer images), or failing that the first bwrap* profile the image has. Install it and load it as before.
  2. If the image has no bwrap profile at all, set the sysctl to 0 for this CI job only, with a ::warning::.

The Codex sandbox probe right after is unchanged and still fails the job if the real sandbox can't start.

Testing

  • bash -n on the step script.
  • Electron tests that read the workflow files: 105/105.
  • This PR's own CI exercises the step on whichever image each runner gets.

🤖 Generated with Claude Code

ubuntu-latest started rolling to an image whose apparmor-profiles (5.0.2)
no longer ships /usr/share/apparmor/extra-profiles/bwrap-userns-restrict,
so the Codex sandbox-proof setup failed before any test ran (PR #1740).
Use whichever bwrap profile the image has; if none, relax
apparmor_restrict_unprivileged_userns for this job only (the codex probe
still fails the job if the real sandbox cannot start).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T13:29:11.441361Z d59ab8a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@currentbits
currentbits merged commit 18b11ae into main Oct 29, 2026
6 checks passed
@currentbits
currentbits deleted the ci/bwrap-apparmor-profile-26-04 branch October 29, 2026 15:58
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.

1 participant