From: Christian Brauner Date: Wed, 17 Feb 2021 09:04:58 +0000 (+0100) Subject: cgroups: be stricter when creating payloads X-Git-Tag: lxc-5.0.0~281^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=471929c6d0dcbaeaa7748b54b7b0630887002ba6;p=thirdparty%2Flxc.git cgroups: be stricter when creating payloads Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index e0126775c..0d32469e7 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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)