File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,10 @@ The following parameters can be specified to set up seccomp:
616
616
* ` SCMP_ACT_ALLOW `
617
617
* ` SCMP_ACT_LOG `
618
618
619
+ * ** ` errnoRet ` ** * (uint, OPTIONAL)* - the errno return code to use.
620
+ Some actions like ` SCMP_ACT_ERRNO ` and ` SCMP_ACT_TRACE ` allow to specify the errno
621
+ code to return. If not specified its default value is ` EPERM ` .
622
+
619
623
* ** ` args ` ** * (array of objects, OPTIONAL)* - the specific syscall in seccomp.
620
624
Each entry has the following structure:
621
625
Original file line number Diff line number Diff line change 116
116
"action" : {
117
117
"$ref" : " #/definitions/SeccompAction"
118
118
},
119
+ "errnoRet" : {
120
+ "$ref" : " defs.json#/definitions/uint32"
121
+ },
119
122
"args" : {
120
123
"type" : " array" ,
121
124
"items" : {
Original file line number Diff line number Diff line change @@ -667,9 +667,10 @@ type LinuxSeccompArg struct {
667
667
668
668
// LinuxSyscall is used to match a syscall in Seccomp
669
669
type LinuxSyscall struct {
670
- Names []string `json:"names"`
671
- Action LinuxSeccompAction `json:"action"`
672
- Args []LinuxSeccompArg `json:"args,omitempty"`
670
+ Names []string `json:"names"`
671
+ Action LinuxSeccompAction `json:"action"`
672
+ ErrnoRet uint `json:"errno"`
673
+ Args []LinuxSeccompArg `json:"args,omitempty"`
673
674
}
674
675
675
676
// LinuxIntelRdt has container runtime resource constraints for Intel RDT
You can’t perform that action at this time.
0 commit comments