cgroups: use lxc_cmd_get_limiting_cgroup2_fd()

parent 6f7f2966
...@@ -3509,7 +3509,7 @@ int cgroup_get(const char *name, const char *lxcpath, ...@@ -3509,7 +3509,7 @@ int cgroup_get(const char *name, const char *lxcpath,
if ((buf && !len) || (len && !buf)) if ((buf && !len) || (len && !buf))
return ret_errno(EINVAL); return ret_errno(EINVAL);
unified_fd = lxc_cmd_get_cgroup2_fd(name, lxcpath); unified_fd = lxc_cmd_get_limiting_cgroup2_fd(name, lxcpath);
if (unified_fd < 0) if (unified_fd < 0)
return ret_errno(ENOCGROUP2); return ret_errno(ENOCGROUP2);
...@@ -3531,7 +3531,7 @@ int cgroup_set(const char *name, const char *lxcpath, ...@@ -3531,7 +3531,7 @@ int cgroup_set(const char *name, const char *lxcpath,
is_empty_string(name) || is_empty_string(lxcpath)) is_empty_string(name) || is_empty_string(lxcpath))
return ret_errno(EINVAL); return ret_errno(EINVAL);
unified_fd = lxc_cmd_get_cgroup2_fd(name, lxcpath); unified_fd = lxc_cmd_get_limiting_cgroup2_fd(name, lxcpath);
if (unified_fd < 0) if (unified_fd < 0)
return ret_errno(ENOCGROUP2); return ret_errno(ENOCGROUP2);
...@@ -3600,7 +3600,7 @@ int cgroup_freeze(const char *name, const char *lxcpath, int timeout) ...@@ -3600,7 +3600,7 @@ int cgroup_freeze(const char *name, const char *lxcpath, int timeout)
if (is_empty_string(name) || is_empty_string(lxcpath)) if (is_empty_string(name) || is_empty_string(lxcpath))
return ret_errno(EINVAL); return ret_errno(EINVAL);
unified_fd = lxc_cmd_get_cgroup2_fd(name, lxcpath); unified_fd = lxc_cmd_get_limiting_cgroup2_fd(name, lxcpath);
if (unified_fd < 0) if (unified_fd < 0)
return ret_errno(ENOCGROUP2); return ret_errno(ENOCGROUP2);
...@@ -3620,7 +3620,7 @@ int cgroup_unfreeze(const char *name, const char *lxcpath, int timeout) ...@@ -3620,7 +3620,7 @@ int cgroup_unfreeze(const char *name, const char *lxcpath, int timeout)
if (is_empty_string(name) || is_empty_string(lxcpath)) if (is_empty_string(name) || is_empty_string(lxcpath))
return ret_errno(EINVAL); return ret_errno(EINVAL);
unified_fd = lxc_cmd_get_cgroup2_fd(name, lxcpath); unified_fd = lxc_cmd_get_limiting_cgroup2_fd(name, lxcpath);
if (unified_fd < 0) if (unified_fd < 0)
return ret_errno(ENOCGROUP2); return ret_errno(ENOCGROUP2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment