From: Christian Brauner Date: Tue, 2 Feb 2021 21:22:53 +0000 (+0100) Subject: cgroups: return ENOCGROUP2 from cgroup_attach() X-Git-Tag: lxc-5.0.0~305^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b55ce0ed389b8a2ea0adee662adb59ddfe4c98d;p=thirdparty%2Flxc.git cgroups: return ENOCGROUP2 from cgroup_attach() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 498c2d819..c05e47906 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -3470,7 +3470,7 @@ int cgroup_attach(const struct lxc_conf *conf, const char *name, unified_fd = lxc_cmd_get_cgroup2_fd(name, lxcpath); if (unified_fd < 0) - return ret_errno(EBADF); + return ret_errno(ENOCGROUP2); if (!lxc_list_empty(&conf->id_map)) { struct userns_exec_unified_attach_data args = {