nspawn: let's mount(/tmp) inside the user namespace (#4340)
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 11 Oct 2016 21:18:27 +0000 (00:18 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Oct 2016 21:18:27 +0000 (17:18 -0400)
commit8492849ee567c4657d6ac6587ed9536857624b4c
tree27d1052b3f070e0c0ca749e664a6aa9729e0b79d
parente0d2adfde677d91b57dd63f6a3f00f4b86be9a64
nspawn: let's mount(/tmp) inside the user namespace (#4340)

Fixes:
host# systemd-nspawn -D ... -U -b systemd.unit=multi-user.target
...
$ grep /tmp /proc/self/mountinfo
154 145 0:41 / /tmp rw - tmpfs tmpfs rw,seclabel,uid=1036124160,gid=1036124160

$ umount /tmp
umount: /root/tmp: not mounted

$ systemctl poweroff
...
[FAILED] Failed unmounting Temporary Directory.
src/nspawn/nspawn-mount.c