Skip to content

Commit 7ceeb8a

Browse files
authored
Merge pull request #1137 from frasertweedale/fix/chown-cgroup-missing-files
cgroup ownership: clarify that some files may not exist
2 parents 8958f93 + 600a8bd commit 7ceeb8a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

config-linux.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,14 @@ SHOULD NOT change the cgroup ownership.
236236

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

244248
```
245249
cgroup.procs

0 commit comments

Comments
 (0)