]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace: if we can create the destination of bind and PrivateTmp= mounts
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Sep 2017 16:35:51 +0000 (18:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Oct 2017 15:41:43 +0000 (17:41 +0200)
commita227a4be489333b1b149df124ab284d82397ff2d
treeefab76edac940e5e5e97b62736a66c4387f8534e
parente908468b5b24f1d4a4d787262cb3b8b2d8a5aad4
namespace: if we can create the destination of bind and PrivateTmp= mounts

When putting together the namespace, always create the file or directory
we are supposed to bind mount on, the same way we do it for most other
stuff, for example mount units or systemd-nspawn's --bind= option.

This has the big benefit that we can use namespace bind mounts on dirs
in /tmp or /var/tmp even in conjunction with PrivateTmp=.
src/core/namespace.c