Skip to content

Commit

Permalink
cgroups: ignore legacy limits on pure cgroup2 systems
Browse files Browse the repository at this point in the history
Link: #3183 (comment)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Apr 12, 2020
1 parent 3d89497 commit b96aa96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/cgroups/cgfsng.c
Expand Up @@ -2847,6 +2847,9 @@ __cgfsng_ops static bool cgfsng_setup_limits_legacy(struct cgroup_ops *ops,
if (!ops->hierarchies)
return ret_set_errno(false, EINVAL);

if (!pure_unified_layout(ops))
return log_warn_errno(true, EINVAL, "Ignoring legacy cgroup limits on pure cgroup2 system");

sorted_cgroup_settings = sort_cgroup_settings(cgroup_settings);
if (!sorted_cgroup_settings)
return false;
Expand Down

0 comments on commit b96aa96

Please sign in to comment.