]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: chown() StateDirectory= and friends recursively when starting a service
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Sep 2017 17:13:44 +0000 (19:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Oct 2017 15:41:43 +0000 (17:41 +0200)
commita1164ae3805646048d4712f5a9e2de16b6faf6fa
treef22e0185513bb1dad687115b6e118f2ce4ea2024
parent64fbdc0f91f77908c63386f3db4d58e007a78963
core: chown() StateDirectory= and friends recursively when starting a service

This is particularly useful when used in conjunction with DynamicUser=1,
where the UID might change for every invocation, but is useful in other
cases too, for example, when these directories are shared between
systems where the UID assignments differ slightly.
src/core/chown-recursive.c [new file with mode: 0644]
src/core/chown-recursive.h [new file with mode: 0644]
src/core/execute.c
src/core/meson.build