Open aerusso opened 1 year ago
This is because when --dev
is used there will an extra unbounded user namespace.
https://github.com/util-linux/util-linux/issues/1592#issuecomment-1279939987
You need to first switch to that user namespace before launching the slirp4netns
using NS_GET_PARENT
ioctl. This is what my sandbox project does.
First of all, I'm sorry if this is the wrong place for this question. I'm running slirp4netns 1.2 on Debian unstable
I'm trying to use slip4netns with
bwrap
. This works fine: just replaceunshare --net
withbwrap --unshare-net
in the tutorial. However, I want to also usebwrap --dev /dev
. This breaks with the error:What makes this weirder is that I didn't even use
bwrap --dev /dev
. I usedbwrap --unshare-net --dev /tmp/anotherpath
, (though it also breaks if you do--dev /dev
).Am I doing something wrong? Before I go dive into the bubblewrap source, does anyone have any ideas how I can use
slirp4netns
with bubblewrap and a private devtmpfs?