bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Cannot execute any commands

Open KihongHeo opened this issue 6 years ago • 4 comments

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

KihongHeo avatar Dec 05 '18 05:12 KihongHeo

I have the same problem.

@KihongHeo did you ever find a solution or workaround?

mhwombat avatar Apr 16 '20 18:04 mhwombat

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?

smcv avatar Apr 16 '20 19:04 smcv

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.

mhwombat avatar Apr 18 '20 19:04 mhwombat

Here's the version of bublewrap I have installed:

$ bwrap --version
bubblewrap 0.4.1

mhwombat avatar Apr 18 '20 19:04 mhwombat