File tree Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -586,6 +586,14 @@ The following parameters can be specified to set up seccomp:
586
586
* ` SCMP_ARCH_PARISC `
587
587
* ` SCMP_ARCH_PARISC64 `
588
588
589
+ * ** ` flags ` ** * (array of strings, OPTIONAL)* - list of flags to use with seccomp(2).
590
+
591
+ A valid list of constants is shown below.
592
+
593
+ * ` SECCOMP_FILTER_FLAG_TSYNC `
594
+ * ` SECCOMP_FILTER_FLAG_LOG `
595
+ * ` SECCOMP_FILTER_FLAG_SPEC_ALLOW `
596
+
589
597
* ** ` syscalls ` ** * (array of objects, OPTIONAL)* - match a syscall in seccomp.
590
598
591
599
While this property is OPTIONAL, some values of ` defaultAction ` are not useful without ` syscalls ` entries.
Original file line number Diff line number Diff line change 197
197
"defaultAction" : {
198
198
"$ref" : " defs-linux.json#/definitions/SeccompAction"
199
199
},
200
+ "flags" : {
201
+ "type" : " array" ,
202
+ "items" : {
203
+ "$ref" : " defs-linux.json#/definitions/SeccompFlag"
204
+ }
205
+ },
200
206
"architectures" : {
201
207
"type" : " array" ,
202
208
"items" : {
Original file line number Diff line number Diff line change 42
42
" SCMP_ACT_ALLOW"
43
43
]
44
44
},
45
+ "SeccompFlag" : {
46
+ "type" : " string" ,
47
+ "enum" : [
48
+ " SECCOMP_FILTER_FLAG_TSYNC" ,
49
+ " SECCOMP_FILTER_FLAG_LOG" ,
50
+ " SECCOMP_FILTER_FLAG_SPEC_ALLOW"
51
+ ]
52
+ },
45
53
"SeccompOperators" : {
46
54
"type" : " string" ,
47
55
"enum" : [
Original file line number Diff line number Diff line change @@ -556,12 +556,16 @@ type VMImage struct {
556
556
type LinuxSeccomp struct {
557
557
DefaultAction LinuxSeccompAction `json:"defaultAction"`
558
558
Architectures []Arch `json:"architectures,omitempty"`
559
+ Flags []LinuxSeccompFlag `json:"flags,omitempty"`
559
560
Syscalls []LinuxSyscall `json:"syscalls,omitempty"`
560
561
}
561
562
562
563
// Arch used for additional architectures
563
564
type Arch string
564
565
566
+ // LinuxSeccompFlag is a flag to pass to seccomp(2).
567
+ type LinuxSeccompFlag string
568
+
565
569
// Additional architectures permitted to be used for system calls
566
570
// By default only the native architecture of the kernel is permitted
567
571
const (
You can’t perform that action at this time.
0 commit comments