Files
runc/libcontainer/cgroups
Kang Chen 2c30069c67 libct/cg/sd/v2: Destroy: remove cgroups recursively
Currently, we can create subcgroup in a rootless container with systemd cgroupv2 on centos8.
But after the container exited, the container cgroup and its subcgroup will not be removed.

Fix this by removing all directories recursively.

Fixes: https://github.com/opencontainers/runc/issues/3225

Signed-off-by: Kang Chen <kongchen28@gmail.com>

[kolyshkin: cherry picked from commit 7758d3fb02,
 changing the code to use cgroups.RemovePath().]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-11-29 16:02:06 -08:00
..
2021-04-29 15:30:12 -07:00
2021-01-19 18:02:11 +01:00
2021-06-01 12:17:27 -07:00