diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-11-28 17:58:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-05 13:49:13 +0100 |
commit | de54e02d5e2d4735edface6505b49b99b6bacc85 (patch) | |
tree | e0a0e5f5b2ae41396269b32725f608c2e0e69314 /src/nspawn/nspawn-cgroup.h | |
parent | 2d3a5a73e0fd5283bd9de42decfd779e6a85ba53 (diff) | |
download | systemd-de54e02d5e2d4735edface6505b49b99b6bacc85.tar.gz |
nspawn: when in hybrid mode, chown() both the legacy and the unified hierarchy to the root in the container
If user namespacing is used, let's make sure that the root user in the
container gets access to both /sys/fs/cgroup/systemd and
/sys/fs/cgroup/unified.
This matches similar logic in cg_set_access().
Diffstat (limited to 'src/nspawn/nspawn-cgroup.h')
-rw-r--r-- | src/nspawn/nspawn-cgroup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-cgroup.h b/src/nspawn/nspawn-cgroup.h index e66a854843..3855e5b4ea 100644 --- a/src/nspawn/nspawn-cgroup.h +++ b/src/nspawn/nspawn-cgroup.h @@ -25,6 +25,6 @@ #include "cgroup-util.h" -int chown_cgroup(pid_t pid, uid_t uid_shift); +int chown_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift); int sync_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift); int create_subcgroup(pid_t pid, CGroupUnified unified_requested); |