Skip to content

Commit f070429

Browse files
committed
config-linux: Remove explicit 'null' from device cgroup values
Catch the Markdown spec up with the JSON Schema change in 0927437 (schema: Drop pointers and nulls, 2017-01-18, opencontainers#662). The Markdown is canonical, so we could restore the explicit-null handling to the JSON Schema instead, but the maintainers feel (and I agree) that there's no point in explicitly allowing a null value when callers can simply leave the property unset [1]. [1]: opencontainers#555 (comment) Signed-off-by: W. Trevor King <wking@tremily.us>
1 parent cf8306e commit f070429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config-linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ Each entry has the following structure:
221221

222222
* **`allow`** *(boolean, REQUIRED)* - whether the entry is allowed or denied.
223223
* **`type`** *(string, OPTIONAL)* - type of device: `a` (all), `c` (char), or `b` (block).
224-
`null` or unset values mean "all", mapping to `a`.
224+
Unset values mean "all", mapping to `a`.
225225
* **`major, minor`** *(int64, OPTIONAL)* - [major, minor numbers][devices] for the device.
226-
`null` or unset values mean "all", mapping to [`*` in the filesystem API][cgroup-v1-devices].
226+
Unset values mean "all", mapping to [`*` in the filesystem API][cgroup-v1-devices].
227227
* **`access`** *(string, OPTIONAL)* - cgroup permissions for device.
228228
A composition of `r` (read), `w` (write), and `m` (mknod).
229229

0 commit comments

Comments
 (0)