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

Can't run bubblewrap inside bubblewrap when using --cap-add #397

Open
L-as opened this issue Dec 25, 2020 · 3 comments
Open

Can't run bubblewrap inside bubblewrap when using --cap-add #397

L-as opened this issue Dec 25, 2020 · 3 comments

Comments

@L-as
Copy link

L-as commented Dec 25, 2020

These work:
bwrap --dev-bind / / --cap-add ALL -- chroot / sh
bwrap --dev-bind / / -- bwrap --dev-bind / / -- sh
This doesn't:
bwrap --dev-bind / / --cap-add ALL -- bwrap --dev-bind / / -- sh
It tells me: bwrap: Unexpected capabilities but not setuid, old file caps config?

I am using bubblewrap from NixOS, so it's not setuid and has no capabilities or other special permissions.

Is this supposed not to work? It seems to be triggered by this piece of code; is it insecure if bubblewrap somehow has capabilities set by a parent bubblewrap? Can't the capabilities somehow be dropped?

@gasinvein
Copy link

Looks like the same issue as #380

@L-as
Copy link
Author

L-as commented Dec 29, 2020

FWIW I removed the check and it works fine now, but I don't know if it's secure.

@MagicRB
Copy link

MagicRB commented Sep 17, 2024

mentioned "fix" still works :)

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

No branches or pull requests

3 participants