-
Notifications
You must be signed in to change notification settings - Fork 246
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
bubblewrap inside unprivileged docker #505
Comments
You are missing apparmor
The setuid variant can potentially run as root in the container but I have not gotten that working. |
You are also missing the seccomp filter
Docker's default seccomp filter blocks the |
I'm experiencing the same behaviour trying out bubblewrap inside a k8s pod - even with seccomp set to Unconfined. |
bubblewrap cannot work if it's run inside a container that doesn't allow the necessary syscalls, mount operations, etc. to let bubblewrap to do its job. The precise permissions that are required are not obvious, partly because the kernel gives us very little diagnostic information when we don't have them ("Permission denied" is as much as we get). This isn't a bubblewrap bug: doing impossible things is out-of-scope for this project. |
I think it's probably a common request that I've seen me and my team looking for too: people would like to use bubblewrap (or something similar) in a confined environment (like Openshift in its default configuration for example). I guess documenting clearly what's required might both help and cut down the noise. |
bubblewrap is becoming a popular sandbox tool, so we need be able to use it inside unprivileged docker to containerize solutions.
As you may know
bwrap
works correctly in a privileged container:You also may know that wont work with a simple
--privileged
removal:Now lets try to give all permissions, then when we succeed, we can remove one by one to use only the necessary capabilities:
To be sure I ran
capsh --print
on both--privileged
try and on the all--cap-add
try. Both give me the same result:Failed to make / slave: Permission denied
" result?The text was updated successfully, but these errors were encountered: