diff --git a/schema/config-linux.json b/schema/config-linux.json index 74eaceab..b1c91d86 100644 --- a/schema/config-linux.json +++ b/schema/config-linux.json @@ -61,6 +61,20 @@ "id": "https://opencontainers.org/schema/bundle/linux/resources", "type": "object", "properties": { + "devices": { + "id": "https://opencontainers.org/schema/bundle/linux/resources/devices", + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "defs-linux.json#/definitions/DeviceCgroup" + } + }, + { + "type": "null" + } + ] + }, "oomScoreAdj": { "id": "https://opencontainers.org/schema/bundle/linux/resources/oomScoreAdj", "type": "integer", diff --git a/schema/defs-linux.json b/schema/defs-linux.json index 484ee64a..b72424a3 100644 --- a/schema/defs-linux.json +++ b/schema/defs-linux.json @@ -217,6 +217,40 @@ } ] }, + "DeviceCgroup": { + "type": "object", + "properties": { + "allow": { + "type": "boolean" + }, + "type": { + "$ref": "defs.json#/definitions/stringPointer" + }, + "major": { + "oneOf": [ + { + "$ref": "#/definitions/Major" + }, + { + "type": "null" + } + ] + }, + "minor": { + "oneOf": [ + { + "$ref": "#/definitions/Minor" + }, + { + "type": "null" + } + ] + }, + "access": { + "$ref": "defs.json#/definitions/stringPointer" + } + } + }, "NetworkInterfacePriority": { "type": "object", "properties": {