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:
Mike Yuan
2025-04-04 15:34:51 +02:00
parent be1d96dbc3
commit 77a0d2e3ec
2 changed files with 13 additions and 58 deletions
-4
View File
@@ -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;