core/cgroup: remove legacy hierarchy setup
This also makes pin_cgroupfs_fd actually pin the fs root, so that we can port all cg_* helpers to operate under the fd later on.
This commit is contained in:
@@ -1028,10 +1028,6 @@ int cg_get_root_path(char **ret_path) {
|
||||
return r;
|
||||
|
||||
e = endswith(p, "/" SPECIAL_INIT_SCOPE);
|
||||
if (!e)
|
||||
e = endswith(p, "/" SPECIAL_SYSTEM_SLICE); /* legacy */
|
||||
if (!e)
|
||||
e = endswith(p, "/system"); /* even more legacy */
|
||||
if (e)
|
||||
*e = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user