]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: start stashing all fds
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 21 Feb 2021 18:59:25 +0000 (19:59 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 22 Feb 2021 20:40:02 +0000 (21:40 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 3632d788fde2da0b38520a9bddfcacddfcb251d5..345f5f65582be77b807a58ec701bda9032164ba8 100644 (file)
@@ -1372,18 +1372,6 @@ __cgfsng_ops static void cgfsng_payload_finalize(struct cgroup_ops *ops)
        if (!ops->hierarchies)
                return;
 
-       for (int i = 0; ops->hierarchies[i]; i++) {
-               struct hierarchy *h = ops->hierarchies[i];
-               /*
-                * we don't keep the fds for non-unified hierarchies around
-                * mainly because we don't make use of them anymore after the
-                * core cgroup setup is done but also because there are quite a
-                * lot of them.
-                */
-               if (!is_unified_hierarchy(h))
-                       close_prot_errno_disarm(h->dfd_con);
-       }
-
        /*
         * The checking for freezer support should obviously be done at cgroup
         * initialization time but that doesn't work reliable. The freezer