summaryrefslogtreecommitdiff
path: root/src/basic/unit-def.c
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2022-06-01 10:15:06 +0200
committerLennart Poettering <lennart@poettering.net>2022-08-04 17:01:13 +0200
commit03860190fefce8bbea3a6f0e77919b882ade517c (patch)
treec7992d39d1969d25a54e0ffa0aaf636b28dca6ed /src/basic/unit-def.c
parenta552061ebb167386520a7aa8acef04409c6275a6 (diff)
downloadsystemd-03860190fefce8bbea3a6f0e77919b882ade517c.tar.gz
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
Diffstat (limited to 'src/basic/unit-def.c')
-rw-r--r--src/basic/unit-def.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/unit-def.c b/src/basic/unit-def.c
index 58b367be06..94cd603e32 100644
--- a/src/basic/unit-def.c
+++ b/src/basic/unit-def.c
@@ -169,6 +169,7 @@ DEFINE_STRING_TABLE_LOOKUP(path_state, PathState);
static const char* const scope_state_table[_SCOPE_STATE_MAX] = {
[SCOPE_DEAD] = "dead",
+ [SCOPE_START_CHOWN] = "start-chown",
[SCOPE_RUNNING] = "running",
[SCOPE_ABANDONED] = "abandoned",
[SCOPE_STOP_SIGTERM] = "stop-sigterm",