Skip to content

Fix proc mount fallback detection for Bubblewrap 0.12 - #61900

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7cb0d004cd88ec3dcf14960497c1fac665e6e74a
Nov 16, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7cb0d004cd88ec3dcf14960497c1fac665e6e74a

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Fix proc mount fallback detection for Bubblewrap 0.12

Why

Bubblewrap 0.12 reports proc mount failures at /proc instead of /newroot/proc, so the Linux sandbox preflight did not recognize failures that should enable the existing fallback.

What changed

Recognize both destinations for Invalid argument, Operation not permitted, and Permission denied. Match the destination and error on the same diagnostic line to avoid treating unrelated errors as proc mount failures.

Testing

Extend unit tests to cover both diagnostic formats and reject unrelated destinations, unsupported errors, and errors on separate lines. Exercise the fallback and explicit PID namespace inheritance integration test with both destinations.

## Why

Bubblewrap 0.12 reports proc mount failures at `/proc` instead of `/newroot/proc`, so the Linux sandbox preflight did not recognize failures that should enable the existing fallback.

## What changed

Recognize both destinations for `Invalid argument`, `Operation not permitted`, and `Permission denied`. Match the destination and error on the same diagnostic line to avoid treating unrelated errors as proc mount failures.

## Testing

Extend unit tests to cover both diagnostic formats and reject unrelated destinations, unsupported errors, and errors on separate lines. Exercise the fallback and explicit PID namespace inheritance integration test with both destinations.

GitOrigin-RevId: 7cb0d004cd88ec3dcf14960497c1fac665e6e74a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7cb0d004cd88ec3dcf14960497c1fac665e6e74a branch from 40741ee to a11d240 Compare November 16, 2026 22:42
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-16T22:42:15.210849Z 40741ee 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.

@copyberry
copyberry Bot merged commit a11d240 into main Nov 16, 2026
11 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7cb0d004cd88ec3dcf14960497c1fac665e6e74a branch November 16, 2026 22:42
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 16, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — a11d2403 Deployed Nov 16, 2026 by BrunoP9 via Identify potential duplicates (all issues) #63866
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