Skip to content

Commit

Permalink
chown cgroup only when new cgroupns also specified
Browse files Browse the repository at this point in the history
  • Loading branch information
frasertweedale committed Sep 23, 2021
1 parent e1d1e87 commit 183dd28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ Runtimes SHOULD NOT change the ownership of container cgroups when
cgroups v1 is in use. Cgroup delegation is not secure in cgroups
v1.

A runtime SHOULD NOT change the ownership of a container cgroup
unless it will also create a new cgroup namespace for the container.
Typically this occurs when the `linux.namespaces` array contains an
object with `type` equal to `"cgroup"` and `path` unset.

Runtimes SHOULD change the cgroup ownership if and only if the
cgroup filesystem is to be mounted read/write; that is, when the
configuration's `mounts` array contains an object where:
Expand Down

0 comments on commit 183dd28

Please sign in to comment.