2 ms·
unshare calls chroot behind the scenes: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/sys-utils/unshare.c#n643 https://git.kernel.org/pub/
by zokier 6y ago
unshare calls chroot behind the scenes: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/sys-utils/unshare.c#n643 https://git.kernel.org/pub/scm/utils/util-linux/util-linux.g...
- CyberRabbi 6y agoYes but it does so as the root user in the new user namespace, which is allowed according to existing rules. The change in question is about not requiring root in any user namespace.
- georgyo 6y agoThanks for the link! In that case, it seems completely arbitrary to not make chroot work as a normal user then.