]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: be stricter when creating payloads
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 09:04:58 +0000 (10:04 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 09:04:58 +0000 (10:04 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index e0126775c5ad30f04bb5ef3e649cb2b65d1792b2..0d32469e70112b7969737f16c6bf0356669fead0 100644 (file)
@@ -1409,7 +1409,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)