[systemd-bugs] [Bug 70856] New: PrivateTmp works incorrectly with `mount --make-rprivate /`
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Oct 25 09:42:35 CEST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=70856
Priority: medium
Bug ID: 70856
Assignee: systemd-bugs at lists.freedesktop.org
Summary: PrivateTmp works incorrectly with `mount
--make-rprivate /`
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: s.seletskiy at gmail.com
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: general
Product: systemd
# 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").
--
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/20131025/a9c1fd1d/attachment.html>
More information about the systemd-bugs
mailing list