]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: chown RuntimeDirectory= if DynamicUser= is set
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 May 2018 13:26:22 +0000 (22:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 May 2018 13:26:22 +0000 (22:26 +0900)
commitfdff1da299c4d3dbe9a62cb64fe9b4a3023877b8
tree3dfd0a8278a4a2ce9bd3e7d08962a30dce779c77
parent906cb2eb74d377c84f3730c9d5f0fed15286d01f
core: chown RuntimeDirectory= if DynamicUser= is set

When DynamicUser= is set, then RuntimeDirectory= should be always
chowned, as the service unit may enable RuntimeDirectoryPreserve=,
and the uid or gid may changed from the last run.
This also makes easier to migrate the service to use DynamicUser=.
src/core/execute.c