Skip to content

Commit

Permalink
Merge pull request #1137 from frasertweedale/fix/chown-cgroup-missing…
Browse files Browse the repository at this point in the history
…-files

cgroup ownership: clarify that some files may not exist
  • Loading branch information
tianon authored Feb 25, 2022
2 parents 8958f93 + 600a8bd commit 7ceeb8a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,14 @@ SHOULD NOT change the cgroup ownership.

A runtime that changes the cgroup ownership SHOULD only change the
ownership of the container's cgroup directory and files within that
directory that are listed in `/sys/kernel/cgroup/delegate` (see
`cgroups(7)` for details about this file). If the
`/sys/kernel/cgroup/delegate` file does not exist, the runtime MUST
fall back to using the following list of files:
directory that are listed in `/sys/kernel/cgroup/delegate`. See
`cgroups(7)` for details about this file. Note that not all files
listed in `/sys/kernel/cgroup/delegate` necessarily exist in every
cgroup. Runtimes MUST NOT fail in this scenario, and SHOULD change
the ownership of the listed files that do exist in the cgroup.

If the `/sys/kernel/cgroup/delegate` file does not exist, the
runtime MUST fall back to using the following list of files:

```
cgroup.procs
Expand Down

0 comments on commit 7ceeb8a

Please sign in to comment.