Skip to content

Commit

Permalink
cgroups: be stricter when creating payloads
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent 5ff6d75 commit f5eccee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -1407,7 +1407,7 @@ __cgfsng_ops static bool cgfsng_payload_create(struct cgroup_ops *ops, struct lx
if (!ops->hierarchies)
return true;

if (ops->container_cgroup)
if (ops->container_cgroup || ops->container_limit_cgroup)
return ret_set_errno(false, EEXIST);

if (!handler || !handler->conf)
Expand Down

0 comments on commit f5eccee

Please sign in to comment.