Lurker News

Comments (239) 44 threads

Show all comments

Showing thread 18 of 44

notamy1 reply#
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.
stabbles1 reply#
Is there an infinite recursion in /tmp? Do you use a bubblewrap-like pivot_root trick?
notamy#
> Is there an infinite recursion in /tmp?

No! The directory in /tmp outside of the "box" is completely empty; the remount of / is only seen within the mount namespace.