<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - PrivateTmp works incorrectly with `mount --make-rprivate /`"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70856#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - PrivateTmp works incorrectly with `mount --make-rprivate /`"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70856">bug 70856</a>
              from <span class="vcard"><a class="email" href="mailto:s.seletskiy@gmail.com" title="Stanislav <s.seletskiy@gmail.com>"> <span class="fn">Stanislav</span></a>
</span></b>
        <pre>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...</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>