Add definitions for cgroup namespaces#1707
Conversation
This adds support for cgroup namespaces, which were added in Linux v4.6. The primary benefit is that it makes /proc/self/cgroup's paths consistent with what's seen under /sys/fs/cgroup. Signed-off-by: Sargun Dhillon <sargun@sargun.me>
|
As discussed in #781 and #1184, it's a bit more complicated than this to add cgroup namespaces support. You need to unshare the cgroup namespace after you've joined the relevant cgroups, otherwise you're going to end up with broken The main thing stalling #1184 is that we need to do a |
|
Sorry, correction to the above: We eventually decided on having cgroup unsharing be delayed based on communication between the top-level |
|
@cyphar Thanks. I'll go ahead and close this PR, and wait for yours. |
This adds support for cgroup namespaces, which were
added in Linux v4.6. The primary benefit is that it makes
/proc/self/cgroup's paths consistent with what's seen
under /sys/fs/cgroup.
Signed-off-by: Sargun Dhillon sargun@sargun.me