cgroups: don't strip LXC_AUTO_CGROUP_FORCE

parent cdd3b77d
...@@ -1889,10 +1889,8 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops, ...@@ -1889,10 +1889,8 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
if ((cg_flags & LXC_AUTO_CGROUP_MASK) == 0) if ((cg_flags & LXC_AUTO_CGROUP_MASK) == 0)
return true; return true;
if (cg_flags & LXC_AUTO_CGROUP_FORCE) { if (cg_flags & LXC_AUTO_CGROUP_FORCE)
cg_flags &= ~LXC_AUTO_CGROUP_FORCE;
wants_force_mount = true; wants_force_mount = true;
}
if (!wants_force_mount) { if (!wants_force_mount) {
wants_force_mount = !lxc_wants_cap(CAP_SYS_ADMIN, conf); wants_force_mount = !lxc_wants_cap(CAP_SYS_ADMIN, conf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment