Skip to content

Commit 0a245ef

Browse files
author
Ma Shimiao
committed
access of device cgroup is optional depends on type
Signed-off-by: Ma Shimiao <[email protected]>
1 parent ec96974 commit 0a245ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config-linux.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,12 @@ Each entry has the following structure:
222222

223223
* **`allow`** *(boolean, REQUIRED)* - whether the entry is allowed or denied.
224224
* **`type`** *(string, OPTIONAL)* - type of device: `a` (all), `c` (char), or `b` (block).
225-
Unset values mean "all", mapping to `a`.
225+
Unset value means "all", mapping to `a`.
226226
* **`major, minor`** *(int64, OPTIONAL)* - [major, minor numbers][devices] for the device.
227-
Unset values mean "all", mapping to [`*` in the filesystem API][cgroup-v1-devices].
227+
Unset value means "all", mapping to [`*` in the filesystem API][cgroup-v1-devices].
228228
* **`access`** *(string, OPTIONAL)* - cgroup permissions for device.
229229
A composition of `r` (read), `w` (write), and `m` (mknod).
230+
* When type is not `a`, `access` is REQUIRED.
230231

231232
#### Example
232233

0 commit comments

Comments
 (0)