Skip to content

Commit

Permalink
config: Do not allow runtimes to ignore properties defined by the spec
Browse files Browse the repository at this point in the history
Otherwise a runtime could silently ignore a property it didn't want to
implement, which would be confusing for runtime callers [1].  This
closes a potential loophole in the restriction from 766abd6
(runtime.md: Require 'create' to fail if config.json asks for the
impossible, 2016-09-08, opencontainers#559).

[1]: opencontainers#472 (comment)

Signed-off-by: W. Trevor King <[email protected]>
  • Loading branch information
wking committed Jun 16, 2017
1 parent 63b7c6c commit ffa1718
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ Cleanup or debugging functions are examples of such a hook.

Runtimes that are reading or processing this configuration file MUST NOT generate an error if they encounter an unknown property.
Instead they MUST ignore unknown properties.
Properties defined for the [target platform](spec.md#platforms) by the [declared version](#specification-version) of this specification MUST NOT be ignored.

## Valid values

Expand Down

0 comments on commit ffa1718

Please sign in to comment.