]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: when in hybrid mode, chown() both the legacy and the unified hierarchy to...
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Nov 2017 16:58:00 +0000 (17:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Dec 2017 12:49:13 +0000 (13:49 +0100)
commitde54e02d5e2d4735edface6505b49b99b6bacc85
treee0a0e5f5b2ae41396269b32725f608c2e0e69314
parent2d3a5a73e0fd5283bd9de42decfd779e6a85ba53
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().
src/nspawn/nspawn-cgroup.c
src/nspawn/nspawn-cgroup.h
src/nspawn/nspawn.c