2017-02-01 00:45:59 +00:00
|
|
|
{
|
|
|
|
"definitions": {
|
|
|
|
"SeccompArch": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"SCMP_ARCH_X86",
|
|
|
|
"SCMP_ARCH_X86_64",
|
|
|
|
"SCMP_ARCH_X32",
|
|
|
|
"SCMP_ARCH_ARM",
|
|
|
|
"SCMP_ARCH_AARCH64",
|
|
|
|
"SCMP_ARCH_MIPS",
|
|
|
|
"SCMP_ARCH_MIPS64",
|
|
|
|
"SCMP_ARCH_MIPS64N32",
|
|
|
|
"SCMP_ARCH_MIPSEL",
|
|
|
|
"SCMP_ARCH_MIPSEL64",
|
|
|
|
"SCMP_ARCH_MIPSEL64N32",
|
|
|
|
"SCMP_ARCH_PPC",
|
|
|
|
"SCMP_ARCH_PPC64",
|
|
|
|
"SCMP_ARCH_PPC64LE",
|
|
|
|
"SCMP_ARCH_S390",
|
2017-04-12 23:12:04 +00:00
|
|
|
"SCMP_ARCH_S390X",
|
|
|
|
"SCMP_ARCH_PARISC",
|
|
|
|
"SCMP_ARCH_PARISC64"
|
2017-02-01 00:45:59 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"SeccompAction": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"SCMP_ACT_KILL",
|
|
|
|
"SCMP_ACT_TRAP",
|
|
|
|
"SCMP_ACT_ERRNO",
|
|
|
|
"SCMP_ACT_TRACE",
|
|
|
|
"SCMP_ACT_ALLOW"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SeccompOperators": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"SCMP_CMP_NE",
|
|
|
|
"SCMP_CMP_LT",
|
|
|
|
"SCMP_CMP_LE",
|
|
|
|
"SCMP_CMP_EQ",
|
|
|
|
"SCMP_CMP_GE",
|
|
|
|
"SCMP_CMP_GT",
|
|
|
|
"SCMP_CMP_MASKED_EQ"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"SyscallArg": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
|
|
|
"index": {
|
|
|
|
"$ref": "defs.json#/definitions/uint32"
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"$ref": "defs.json#/definitions/uint64"
|
|
|
|
},
|
|
|
|
"valueTwo": {
|
|
|
|
"$ref": "defs.json#/definitions/uint64"
|
|
|
|
},
|
|
|
|
"op": {
|
|
|
|
"$ref": "#/definitions/SeccompOperators"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"Syscall": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"names": {
|
|
|
|
"type": [
|
|
|
|
"string"
|
|
|
|
]
|
2017-02-01 00:45:59 +00:00
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"$ref": "#/definitions/SeccompAction"
|
|
|
|
},
|
|
|
|
"args": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/SyscallArg"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"Capability": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"description": "Linux process capabilities",
|
2017-02-01 00:45:59 +00:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^CAP_([A-Z]|_)+$"
|
|
|
|
},
|
|
|
|
"Major": {
|
|
|
|
"description": "major device number",
|
2017-04-12 23:12:04 +00:00
|
|
|
"$ref": "defs.json#/definitions/int64"
|
2017-02-01 00:45:59 +00:00
|
|
|
},
|
|
|
|
"Minor": {
|
|
|
|
"description": "minor device number",
|
2017-04-12 23:12:04 +00:00
|
|
|
"$ref": "defs.json#/definitions/int64"
|
2017-02-01 00:45:59 +00:00
|
|
|
},
|
|
|
|
"FileMode": {
|
|
|
|
"description": "File permissions mode (typically an octal value)",
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"maximum": 512
|
|
|
|
},
|
|
|
|
"FileType": {
|
|
|
|
"description": "Type of a block or special character device",
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[cbup]$"
|
|
|
|
},
|
|
|
|
"Device": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"type",
|
|
|
|
"path"
|
|
|
|
],
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/definitions/FileType"
|
|
|
|
},
|
|
|
|
"path": {
|
|
|
|
"$ref": "defs.json#/definitions/FilePath"
|
|
|
|
},
|
|
|
|
"fileMode": {
|
|
|
|
"$ref": "#/definitions/FileMode"
|
|
|
|
},
|
|
|
|
"major": {
|
|
|
|
"$ref": "#/definitions/Major"
|
|
|
|
},
|
|
|
|
"minor": {
|
|
|
|
"$ref": "#/definitions/Minor"
|
|
|
|
},
|
|
|
|
"uid": {
|
|
|
|
"$ref": "defs.json#/definitions/UID"
|
|
|
|
},
|
|
|
|
"gid": {
|
|
|
|
"$ref": "defs.json#/definitions/GID"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"blkioWeight": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 10,
|
|
|
|
"maximum": 1000
|
|
|
|
},
|
|
|
|
"blockIODevice": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
|
|
|
"major": {
|
|
|
|
"$ref": "#/definitions/Major"
|
|
|
|
},
|
|
|
|
"minor": {
|
|
|
|
"$ref": "#/definitions/Minor"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"major",
|
|
|
|
"minor"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"blockIODeviceWeight": {
|
|
|
|
"type": "object",
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/blockIODevice"
|
|
|
|
},
|
|
|
|
{
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
|
|
|
"weight": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"$ref": "#/definitions/blkioWeight"
|
2017-02-01 00:45:59 +00:00
|
|
|
},
|
|
|
|
"leafWeight": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"$ref": "#/definitions/blkioWeight"
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"blockIODeviceThrottle": {
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/blockIODevice"
|
|
|
|
},
|
|
|
|
{
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
|
|
|
"rate": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"$ref": "defs.json#/definitions/uint64"
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-04-12 23:12:04 +00:00
|
|
|
"DeviceCgroup": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"allow": {
|
|
|
|
"type": "boolean"
|
2017-02-01 00:45:59 +00:00
|
|
|
},
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"major": {
|
|
|
|
"$ref": "#/definitions/Major"
|
|
|
|
},
|
|
|
|
"minor": {
|
|
|
|
"$ref": "#/definitions/Minor"
|
|
|
|
},
|
|
|
|
"access": {
|
|
|
|
"type": "string"
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
2017-04-12 23:12:04 +00:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"allow"
|
2017-02-01 00:45:59 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"NetworkInterfacePriority": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"priority": {
|
|
|
|
"$ref": "defs.json#/definitions/uint32"
|
|
|
|
}
|
2017-04-12 23:12:04 +00:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"priority"
|
|
|
|
]
|
2017-02-01 00:45:59 +00:00
|
|
|
},
|
|
|
|
"NamespaceType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"mount",
|
|
|
|
"pid",
|
|
|
|
"network",
|
|
|
|
"uts",
|
|
|
|
"ipc",
|
|
|
|
"user",
|
|
|
|
"cgroup"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"NamespaceReference": {
|
2017-04-12 23:12:04 +00:00
|
|
|
"type": "object",
|
2017-02-01 00:45:59 +00:00
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/definitions/NamespaceType"
|
|
|
|
},
|
|
|
|
"path": {
|
|
|
|
"$ref": "defs.json#/definitions/FilePath"
|
|
|
|
}
|
2017-04-12 23:12:04 +00:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"type"
|
|
|
|
]
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|