cgroups: be stricter when creating payloads

parent 5ff6d751
...@@ -1407,7 +1407,7 @@ __cgfsng_ops static bool cgfsng_payload_create(struct cgroup_ops *ops, struct lx ...@@ -1407,7 +1407,7 @@ __cgfsng_ops static bool cgfsng_payload_create(struct cgroup_ops *ops, struct lx
if (!ops->hierarchies) if (!ops->hierarchies)
return true; return true;
if (ops->container_cgroup) if (ops->container_cgroup || ops->container_limit_cgroup)
return ret_set_errno(false, EEXIST); return ret_set_errno(false, EEXIST);
if (!handler || !handler->conf) if (!handler || !handler->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