Skip to content

Support cgroup namespaces#13675

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl945868085
Open

Support cgroup namespaces#13675
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl945868085

Conversation

@copybara-service

Copy link
Copy Markdown

Support cgroup namespaces

cgroup namespaces are non hierarchical and they are defined primarily by a
"root" cgroup node. The init cgroup namespaces's root node is the true root of
the (only) cgroup2fs tree. The root node of other cgroup namespaces is the
cgroup node of the task at the time of namespace creation.

Residing in a cgroup namespace affects tasks this way:

  1. The views into /proc/[pid]/cgroup and the "root" field under
    /proc/[pid]/mountinfo are virtualized: they are rendered relative to the
    reading task's cgroupns.

  2. mount()ing a cgroup2 fs furnishes only a subtree of the full cgroup2fs
    tree, rooted at the "root" cgroup of the hosting cgroupns.

Fixes #11989

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Jul 10, 2026
@copybara-service copybara-service Bot force-pushed the test/cl945868085 branch 2 times, most recently from d5c2e43 to 59d9722 Compare July 10, 2026 23:32
cgroup namespaces are non hierarchical and they are defined primarily by a
"root" cgroup node. The init cgroup namespaces's root node is the true root of
the (only) cgroup2fs tree. The root node of other cgroup namespaces is the
cgroup node of the task at the time of namespace creation.

Residing in a cgroup namespace affects tasks this way:

1) The views into /proc/[pid]/cgroup and the "root" field under
   /proc/[pid]/mountinfo are virtualized: they are rendered relative to the
   reading task's cgroupns.

2) mount()ing a cgroup2 fs furnishes only a subtree of the full cgroup2fs
   tree, rooted at the "root" cgroup of the hosting cgroupns.

Fixes #11989

PiperOrigin-RevId: 945868085
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support cgroup namespace

1 participant