mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 02:31:33 +00:00
cgroups: initialize cgroup root directory - encore
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
81468ea7c0
commit
c18c6b63b8
@ -1795,8 +1795,8 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
|
|||||||
else if (type == LXC_AUTO_CGROUP_FULL_NOSPEC)
|
else if (type == LXC_AUTO_CGROUP_FULL_NOSPEC)
|
||||||
type = LXC_AUTO_CGROUP_FULL_MIXED;
|
type = LXC_AUTO_CGROUP_FULL_MIXED;
|
||||||
|
|
||||||
|
cgroup_root = must_make_path(root, "/sys/fs/cgroup", NULL);
|
||||||
if (ops->cgroup_layout == CGROUP_LAYOUT_UNIFIED) {
|
if (ops->cgroup_layout == CGROUP_LAYOUT_UNIFIED) {
|
||||||
cgroup_root = must_make_path(root, "/sys/fs/cgroup", NULL);
|
|
||||||
if (has_cgns && wants_force_mount) {
|
if (has_cgns && wants_force_mount) {
|
||||||
/* If cgroup namespaces are supported but the container
|
/* If cgroup namespaces are supported but the container
|
||||||
* will not have CAP_SYS_ADMIN after it has started we
|
* will not have CAP_SYS_ADMIN after it has started we
|
||||||
|
Loading…
Reference in New Issue
Block a user