Skip to content

feat(linux-sandbox): vendor bubblewrap and wire it with FFI#10413

Merged
viyatb-oai merged 9 commits intomainfrom
codex/viyatb/bwrap-vendoring
Feb 3, 2026
Merged

feat(linux-sandbox): vendor bubblewrap and wire it with FFI#10413
viyatb-oai merged 9 commits intomainfrom
codex/viyatb/bwrap-vendoring

Conversation

@viyatb-oai
Copy link
Collaborator

Summary

Vendor Bubblewrap into the repo and add minimal build plumbing in codex-linux-sandbox to compile/link it.

Why

We want to move Linux sandboxing toward Bubblewrap, but in a safe two-step rollout:

  1. vendoring/build setup (this PR),
  2. runtime integration (follow-up PR).

Included

  • Add codex-rs/vendor/bubblewrap sources.
  • Add build-time FFI path in codex-rs/linux-sandbox.
  • Update build.rs rerun tracking for vendored files.
  • Small vendored compile warning fix (sockaddr_nl full init).

follow up in #9938

@viyatb-oai viyatb-oai requested a review from bolinfest February 2, 2026 21:18
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/bwrap-vendoring branch from 3a4a6ed to 077419b Compare February 3, 2026 04:27
Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exciting!

@@ -0,0 +1,105 @@
name: CI checks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably exclude the .github/workflows folder from the bubblewrap repo? We aren't going to run it, so I worry it may just confuse things?

Though I concede it makes the diff with the true repo slightly unclean.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked codex about it and apparently Github actions only takes workflows from the top level .github directory

@viyatb-oai viyatb-oai merged commit f956cc2 into main Feb 3, 2026
32 checks passed
@viyatb-oai viyatb-oai deleted the codex/viyatb/bwrap-vendoring branch February 3, 2026 07:33
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
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