Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[merged] Add --unshare-all and --share-net #153

Closed
wants to merge 1 commit into from

Conversation

cgwalters
Copy link
Collaborator

In discussion in #150
it was noted that most of the bwrap command line tends towards "closed
by default, request open". But the --unshare options are inverse.

Now, I suspect in practice there's only one namespace that most users
will care about, which is the network namespace. There are very useful
programs to build on both cases.

I think everything else (pid, ipc, uts) people will want as a group.
Any cases that are unusual enough to want to turn one of them off
can still fall back to the previous bwrap behavior of explicitly
unsharing. They're likely to be security sensitive enough
that if a new namespace were added, it would make sense to evaluate
the tool.

But again I think most users will want all namespaces, with the network one as a
primary "enable it" option.

@alexlarsson
Copy link
Collaborator

So, this adds new features, and I was hoping we could have a stable LTS branch with bugfix backports. Should we branch for 0.7.x and land this?

@smcv
Copy link
Collaborator

smcv commented Jan 17, 2017

This is small enough and security-focused enough that I suspect I can sneak it into Debian 9 if you release it in the next few days; but if you'd prefer to save it for whatever bubblewrap branch is used in flatpak 0.9.x (bubblewrap 0.3.x?) then that's fine too.

@rh-atomic-bot
Copy link

☔ The latest upstream changes (presumably a6e1516) made this pull request unmergeable. Please resolve the merge conflicts.

In discussion in containers#150
it was noted that most of the bwrap command line tends towards "closed
by default, request open".  But the `--unshare` options are inverse.

Now, I suspect in practice there's only one namespace that most users
will care about, which is the network namespace.  There are very useful
programs to build on both cases.

I think everything else (pid, ipc, uts) people will want as a group.
Any cases that are unusual enough to want to turn one of them off
can still fall back to the previous bwrap behavior of explicitly
unsharing.  They're likely to be security sensitive enough
that if a new namespace were added, it would make sense to evaluate
the tool.

But again I think most users will want all namespaces, with the network one as a
primary "enable it" option.
@alexlarsson
Copy link
Collaborator

@rh-atomic-bot r+ e01bd18

@rh-atomic-bot
Copy link

⌛ Testing commit e01bd18 with merge ad4a729...

@rh-atomic-bot
Copy link

☀️ Test successful - status-redhatci
Approved by: alexlarsson
Pushing ad4a729 to master...

@rh-atomic-bot rh-atomic-bot changed the title Add --unshare-all and --share-net [merged] Add --unshare-all and --share-net Jan 17, 2017
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.

4 participants