Unprivileged chroot()
Unprivileged chroot()
Posted Mar 21, 2021 10:50 UTC (Sun) by smurf (subscriber, #17840)In reply to: Unprivileged chroot() by kentonv
Parent article: Unprivileged chroot()
Running in a plain chroot isn't a good idea anyway; as soon as you do anything nontrivial things tend to break. The new unprivileged-chroot sycall is just one more example of many.
Much better to use systemd-nspawn or some other tool that sets up a "real" file system namespace. The unprivileged chroot(2) will work there.