]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/scope.c
scope: allow unprivileged delegation on scopes
authorMichal Sekletar <msekleta@redhat.com>
Wed, 1 Jun 2022 08:15:06 +0000 (10:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Aug 2022 15:01:13 +0000 (17:01 +0200)
commit03860190fefce8bbea3a6f0e77919b882ade517c
treec7992d39d1969d25a54e0ffa0aaf636b28dca6ed
parenta552061ebb167386520a7aa8acef04409c6275a6
scope: allow unprivileged delegation on scopes

Previously it was possible to set delegate property for scope, but you
were not able to allow unprivileged process to manage the scope's cgroup
hierarchy. This is useful when launching manager process that  will run
unprivileged but is supposed to manage its own (scope) sub-hierarchy.

Fixes #21683
src/basic/unit-def.c
src/basic/unit-def.h
src/core/dbus-scope.c
src/core/scope.c
src/core/scope.h
src/shared/bus-unit-util.c
test/units/testsuite-19.sh