]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/execute.c
core: change ownership of subcgroup we create recursively, it shall be owned by the...
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Apr 2023 08:05:10 +0000 (10:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Apr 2023 10:18:32 +0000 (12:18 +0200)
commitbcd9b98159e6e2d90db70ee3a73fddde9d3cdd11
treef62aae3d6155d7c188cee4074ef6bad49a7d29ba
parent18c1e481b60395fe0a4b0487462f0e6ed27baa65
core: change ownership of subcgroup we create recursively, it shall be owned by the user delegated to

If we create a subcroup (regardless if the '.control' subgroup we
always created or one configured via DelegateSubgroup=) it's inside of
the delegated territory of the cgroup tree, hence it should be owned
fully by the unit's users. Hence do so.
src/core/execute.c
src/shared/cgroup-setup.c
src/shared/cgroup-setup.h