[systemd-devel] namespace: session dependant mtab

Kay Sievers kay.sievers at vrfy.org
Wed Aug 3 07:22:50 PDT 2011


On Wed, Aug 3, 2011 at 16:19, Stef Bon <stefbon at gmail.com> wrote:
> 2011/8/3 Kay Sievers <kay.sievers at vrfy.org>:
>> On Wed, Aug 3, 2011 at 16:07, Stef Bon <stefbon at gmail.com> wrote:
>
>>> 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.
> Hi,
>
> Yes I mean a symlink to /proc/mounts.

/proc/mounts is itself a link to /proc/self/mounts, while /self/ is
your PID, and the stuff attached to a PID is always namespaced.

Kay


More information about the systemd-devel mailing list