Skip to content

Add a --netns FD option for preexisting namespaces#766

Open
rarensu wants to merge 1 commit into
containers:mainfrom
rarensu:netns-fd
Open

Add a --netns FD option for preexisting namespaces#766
rarensu wants to merge 1 commit into
containers:mainfrom
rarensu:netns-fd

Conversation

@rarensu

@rarensu rarensu commented Jul 16, 2026

Copy link
Copy Markdown

Implement --netns FD to allow bubblewrap to join preexisting network namespaces via an open file descriptor. This mimics the behavior of --userns and --pidns.

Enforce mutual exclusivity between --netns and --unshare-net. Add documentation to bwrap.xml, update shell completions, and add a new integration test case (test-specifying-netns.sh).

Addresses #698

Implement `--netns FD` to allow bubblewrap to join preexisting network
namespaces via an open file descriptor. This mimics the behavior of
`--userns` and `--pidns`.

Enforce mutual exclusivity between `--netns` and `--unshare-net`.
Add documentation to `bwrap.xml`, update shell completions, and add a
new integration test case (`test-specifying-netns.sh`).

Co-authored-by: rarensu <40872193+rarensu@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Signed-off-by: Richard Lawrence <rlawrence@tamu.edu>
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