cgroups: initialize cgroup root directory - encore

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2019-08-29 14:05:17 +02:00
parent 81468ea7c0
commit c18c6b63b8
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1795,8 +1795,8 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
else if (type == LXC_AUTO_CGROUP_FULL_NOSPEC)
type = LXC_AUTO_CGROUP_FULL_MIXED;
cgroup_root = must_make_path(root, "/sys/fs/cgroup", NULL);
if (ops->cgroup_layout == CGROUP_LAYOUT_UNIFIED) {
cgroup_root = must_make_path(root, "/sys/fs/cgroup", NULL);
if (has_cgns && wants_force_mount) {
/* If cgroup namespaces are supported but the container
* will not have CAP_SYS_ADMIN after it has started we