Skip to content

Commit

Permalink
cgroups: return ENOCGROUP2 from cgroup_attach()
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 bac01cc commit 9986eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -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 = {
Expand Down

0 comments on commit 9986eed

Please sign in to comment.