[systemd-bugs] [Bug 70856] PrivateTmp works incorrectly with `mount --make-rprivate /`

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 10 23:54:03 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=70856

--- Comment #7 from Stanislav <s.seletskiy at gmail.com> ---
However, `mount --make-rprivate /` is needed to get LXC containers to work.

I mean that if service is not using `PrivateTmp` option, then any unmounts are
propagated to the processes running inside service. Even if `mount
--make-rprivate /` was issued before.

So, problem arises ONLY if PrivateTmp and make-rprivate using together.

Please, take a careful look on scenario I attached at first comment.

Unmounts are propagated:
# mount --make-rprivate /
# mount blahblah /mnt
# systemctl start ntpd (without PrivateTmp option in ntpd.service)
# umount /mnt

Unmounts are NOT propagated and unmounting /mnt CAUSES A PROBLEM:
# mount --make-rprivate /
# mount blahblah /mnt
# systemctl start ntpd (WITH PrivateTmp option in ntpd.service, which is
default)
# umount /mnt

Hope it is clear enough...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140411/cea76e17/attachment.html>


More information about the systemd-bugs mailing list