summaryrefslogtreecommitdiff
path: root/src/core/scope.h
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/core/scope.h
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/core/scope.h')
-rw-r--r--src/core/scope.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/scope.h b/src/core/scope.h
index 03a9ba4324..def1541652 100644
--- a/src/core/scope.h
+++ b/src/core/scope.h
@@ -34,6 +34,9 @@ struct Scope {
bool was_abandoned;
sd_event_source *timer_event_source;
+
+ char *user;
+ char *group;
};
extern const UnitVTable scope_vtable;