[systemd-devel] namespace: session dependant mtab

Kay Sievers kay.sievers at vrfy.org
Wed Aug 3 07:15:52 PDT 2011


On Wed, Aug 3, 2011 at 16:07, Stef Bon <stefbon at gmail.com> wrote:
> I've been looking into how namespaces work, shared mounted subtrees
> and user namespaces using PAM.
>
> My own construction is using a FUSE filesystem, some bind mounts of
> system directories and (still) pam_chroot.
> and looking to switch to use pam_namespace.
>
> Anyhowe, I see that with using different namespaces still the central
> managed (=system) mtab is used to lookup mounts.
>
> Isn't it a good idea to provide every different namespace a own mtab,
> containing only the mounts visible for that namespace?

You mean /etc/mtab? Systemd requires that to be symlink to
/proc/mounts, which is always namespace dependent.

We don't support any idea of a regular file called mtab. Systemd will
print errors at bootup.

Kay


More information about the systemd-devel mailing list