bubblewrap
bubblewrap copied to clipboard
Cannot execute any commands
Hi,
I cannot execute any commands with bwrap. I have the following error message on Debian.
$ bwrap --help
bwrap: prctl(PR_SET_NO_NEW_CAPS) failed: Invalid argument
I have the same problem.
@KihongHeo did you ever find a solution or workaround?
What Linux kernel version are you running on? PR_SET_NO_NEW_PRIVS was new in Linux 3.5.
(The error message talks about PR_SET_NO_NEW_CAPS, but that's a typo; it should say PR_SET_NO_NEW_PRIVS.)
Are you in a container? If you're running in a restricted container like Docker, you might not be allowed to use PR_SET_NO_NEW_PRIVS because it's already set, or something like that?
Or are you in a restricted LSM environment?
I'm not running in a container. It's a Debian machine.
$ bwrap --help
bwrap: prctl(PR_SET_NO_NEW_CAPS) failed: Invalid argument
$ cat /etc/debian_version
bullseye/sid
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Note: I encountered this problem while trying to run opam switch create 4.05.0. I was able to track the bug down to bwrap.
Here's the version of bublewrap I have installed:
$ bwrap --version
bubblewrap 0.4.1