Skip to content

Commit c6bff91

Browse files
authored
Merge pull request #769 from wking/require-syscall-names
config-linux: Require at least one entry in linux.seccomp.sycalls[].names
2 parents 482fe6b + 5c62f9b commit c6bff91

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

config-linux.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ The following parameters can be specified to setup seccomp:
615615
Each entry has the following structure:
616616

617617
* **`names`** *(array of strings, REQUIRED)* - the names of the syscalls.
618+
`names` MUST contain at least one entry.
618619

619620
* **`action`** *(string, REQUIRED)* - the action for seccomp rules.
620621
A valid list of constants as of libseccomp v2.3.2 is shown below.

schema/defs-linux.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
"type": "array",
7070
"items": {
7171
"type": "string"
72-
}
72+
},
73+
"minItems": 1
7374
},
7475
"action": {
7576
"$ref": "#/definitions/SeccompAction"
@@ -80,7 +81,10 @@
8081
"$ref": "#/definitions/SyscallArg"
8182
}
8283
}
83-
}
84+
},
85+
"required": [
86+
"names"
87+
]
8488
},
8589
"Capability": {
8690
"description": "Linux process capabilities",

0 commit comments

Comments
 (0)