runc
runc copied to clipboard
libct/cg: skip hidden ones when parsing cgroup mounts
According to [1], "If a new mount is stacked on top of a previous existing mount, at pathname P, then the parent of the new mount is the previous mount at that location"
Use this strategy to skip hidden cgroup mount.
- https://man7.org/linux/man-pages/man5/proc.5.html
@liusdu can you create an integration test case, so that we can see the problem the code is trying to solve?
@liusdu I mark this pr as draft. Please rebase, fix the errors, and add some test cases.
@liusdu do you plan to keep working on this?