From 03860190fefce8bbea3a6f0e77919b882ade517c Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Wed, 1 Jun 2022 10:15:06 +0200 Subject: 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/core/scope.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/scope.h') 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; -- cgit v1.2.1