]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: ensure that namespace tmp directories always get the correct label
authorbauen1 <j2468h@gmail.com>
Fri, 25 Sep 2020 16:45:29 +0000 (18:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Sep 2020 10:36:07 +0000 (12:36 +0200)
commit19cd4e1967ddb0a576688793a050a9f01e714928
treebfcda2c1ec7a59f15dc9287eedcca8577450f89b
parentd99d1aaa21e216b2c2f520b58f847248407ba768
core: ensure that namespace tmp directories always get the correct label

If a namespace with PrivateTmp=true is constructed we need to restore
the context of the namespaces /tmp directory (i.e.
/tmp/systemd-private-XXXXX/tmp) to the (default) context of /tmp .
Otherwise filetransitions might result in the namespaces tmp directory
having the wrong context.
src/core/namespace.c