Skip to content

Commit 1c3f411

Browse files
authored
Merge pull request #1094 from thaJeztah/warn_caps
Runtime should WARN / ignore capabilities that cannot be granted
2 parents 9c848d9 + 8c363e8 commit 1c3f411

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ For Linux-based systems, the `process` object supports the following process-spe
190190
For more information about AppArmor, see [AppArmor documentation][apparmor].
191191
* **`capabilities`** (object, OPTIONAL) is an object containing arrays that specifies the sets of capabilities for the process.
192192
Valid values are defined in the [capabilities(7)][capabilities.7] man page, such as `CAP_CHOWN`.
193-
Any value which cannot be mapped to a relevant kernel interface MUST cause an error.
193+
Any value which cannot be mapped to a relevant kernel interface, or cannot
194+
be granted otherwise MUST be [logged as a warning](runtime.md#warnings) by
195+
the runtime. Runtimes SHOULD NOT fail if the container configuration requests
196+
capabilities that cannot be granted, for example, if the runtime operates in
197+
a restricted environment with a limited set of capabilities.
194198
`capabilities` contains the following properties:
195199

196200
* **`effective`** (array of strings, OPTIONAL) the `effective` field is an array of effective capabilities that are kept for the process.

0 commit comments

Comments
 (0)