]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: don't strip LXC_AUTO_CGROUP_FORCE
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 15 Feb 2021 12:25:00 +0000 (13:25 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 15 Feb 2021 12:25:00 +0000 (13:25 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 8b15db177811bb26d61e4ee172015f9a87ef1149..523283452ebff3e71d6c68f068f205816d100703 100644 (file)
@@ -1889,10 +1889,8 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
        if ((cg_flags & LXC_AUTO_CGROUP_MASK) == 0)
                return true;
 
-       if (cg_flags & LXC_AUTO_CGROUP_FORCE) {
-               cg_flags &= ~LXC_AUTO_CGROUP_FORCE;
+       if (cg_flags & LXC_AUTO_CGROUP_FORCE)
                wants_force_mount = true;
-       }
 
        if (!wants_force_mount) {
                wants_force_mount = !lxc_wants_cap(CAP_SYS_ADMIN, conf);