Is there a minimum required kernel version? How does it compare to proot?
We use proot in our build pipeline and it would be interesting to look into alternatives.
We use proot in our build pipeline and it would be interesting to look into alternatives.
Re 'proot'. I've never used it (it seems to be a configurator for the mount namespace), but nsjail seems much more advanced: cgroups support, seccomp-bpf via configuration language support, and a few more features (configs, net).
kernel.unprivileged_userns_clone
which controls this behavior. Ultimately, it's up to you whether set it to "1", as CLONE_NEWUSER in the past opened many new attack vectors on the Linux kernel. However, I believe that currently the situation is much better, esp. after syzkaller and individual researchers reported and fixed many bugs in this area.