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 <wking@tremily.us>
  • Loading branch information
wking committed Feb 7, 2017
1 parent 2e2d568 commit 19ed44c
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 @@ -415,6 +415,7 @@ Values MAY be an empty string.
## Extensibility
Implementations that are reading/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](#platform) by the [declared version](#specification-version) of this specification MUST NOT be ignored.

## Configuration Schema Example

Expand Down

0 comments on commit 19ed44c

Please sign in to comment.