Skip to content

Commit

Permalink
schema/defs-linux: Drop 'Capability' type
Browse files Browse the repository at this point in the history
The current "For example, valid values for Linux..." wording in
config.md does not seem strong enough to support this condition,
especially since the spec makes no claims about what valid
capabilities are for non-Linux OSes.  And process.capabilities has
been nominally legal for non-Linux OSes since 718f9f3 (minor
narrative cleanup regarding config compatibility, 2017-01-30, opencontainers#673).

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed Apr 11, 2017
1 parent daba39c commit ca6e025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 5 additions & 5 deletions schema/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,35 +141,35 @@
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/bounding",
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/Capability"
"type": "string"
}
},
"permitted": {
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/permitted",
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/Capability"
"type": "string"
}
},
"effective": {
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/effective",
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/Capability"
"type": "string"
}
},
"inheritable": {
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/inheritable",
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/Capability"
"type": "string"
}
},
"ambient": {
"id": "https://opencontainers.org/schema/bundle/process/linux/capabilities/ambient",
"type": "array",
"items": {
"$ref": "defs-linux.json#/definitions/Capability"
"type": "string"
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@
}
}
},
"Capability": {
"description": "Linux process capabilities",
"type": "string",
"pattern": "^CAP_([A-Z]|_)+$"
},
"Major": {
"description": "major device number",
"$ref": "defs.json#/definitions/int64"
Expand Down

0 comments on commit ca6e025

Please sign in to comment.