<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - PrivateTmp works incorrectly with `mount --make-rprivate /`"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70856">70856</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PrivateTmp works incorrectly with `mount --make-rprivate /`
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>s.seletskiy@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre># dd if=/dev/zero of=/tmp/test-drive bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.0437981 s, 2.4 GB/s

# mkfs.ext4 /tmp/test-drive 
mke2fs 1.42.8 (20-Jun-2013)
/tmp/test-drive is not a block special device.
Proceed anyway? (y,n) y
Discarding device blocks: done                            
Filesystem label=
OS type: Linux
...

# systemctl stop ntpd

# mount /tmp/test-drive /mnt

# systemctl start ntpd

# umount /mnt

# grep loop /proc/*/mounts | wc -l
0

# systemctl stop ntpd

# mount --make-rprivate /

# mount /tmp/test-drive /mnt

# systemctl start ntpd

# umount /mnt 

# grep loop /proc/*/mounts | wc -l
1

# grep loop /proc/*/mounts
/proc/1411/mounts:/dev/loop0 /mnt ext4 rw,relatime,data=ordered 0 0

# pgrep -af ntpd
1411 /usr/bin/ntpd -g -u ntp:ntp

# systemctl show ntpd | grep Fragme
FragmentPath=/usr/lib/systemd/system/ntpd.service

# grep Priva /usr/lib/systemd/system/ntpd.service
PrivateTmp=true


As you can see, umounting wouldn't work on unit that was started with
PrivateTmp.

This bug is very annoying while using ZFS On Linux, because it stops umounted
dataset to be destroyed ("dataset is busy").</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>