]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/execute: do not create RuntimeDirectory= under private/ sub-directory
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2017 06:50:58 +0000 (15:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2017 06:50:58 +0000 (15:50 +0900)
commit8092a48cc1d1fb20b66371576754df831d30a43b
treea163b6fb33c72746a6d47ec046f123272b83a41e
parent2bf13bd51e13eb00ec688d1b48bdd5e8f861e7c8
core/execute: do not create RuntimeDirectory= under private/ sub-directory

RuntimeDirectory= often used for sharing files or sockets with other
services. So, if creating them under private/ sub-directory, we cannot
set DynamicUser= to service units which want to share something through
RuntimeDirectory=.
This makes the directories given by RuntimeDirectory= are created under
/run/ even if DynamicUser= is set.

Fixes #7260.
src/core/execute.c