It creates a new mount namespace, and bind-mounts your ENTIRE filesystem into it, before chrooting, so that it can optionally remount / as ro to prevent applications from writing outside of the desired directories. The namespace is to allow doing the bind mounts in the first place.
Comments (239) 44 threads
Show all comments
Showing thread 18 of 44
No! The directory in /tmp outside of the "box" is completely empty; the remount of / is only seen within the mount namespace.