Skip to content

Commit 44341cd

Browse files
author
Mrunal Patel
authored
Merge pull request #1044 from pjbgf/add-seccomp-kill-process
seccomp: Add support for SCMP_ACT_KILL_PROCESS
2 parents e548728 + a9f1170 commit 44341cd

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

config-linux.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ The following parameters can be specified to set up seccomp:
610610
A valid list of constants as of libseccomp v2.4.0 is shown below.
611611

612612
* `SCMP_ACT_KILL`
613+
* `SCMP_ACT_KILL_PROCESS`
613614
* `SCMP_ACT_TRAP`
614615
* `SCMP_ACT_ERRNO`
615616
* `SCMP_ACT_TRACE`

schema/defs-linux.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"type": "string",
5555
"enum": [
5656
"SCMP_ACT_KILL",
57+
"SCMP_ACT_KILL_PROCESS",
5758
"SCMP_ACT_TRAP",
5859
"SCMP_ACT_ERRNO",
5960
"SCMP_ACT_TRACE",

specs-go/config.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,12 +635,13 @@ type LinuxSeccompAction string
635635

636636
// Define actions for Seccomp rules
637637
const (
638-
ActKill LinuxSeccompAction = "SCMP_ACT_KILL"
639-
ActTrap LinuxSeccompAction = "SCMP_ACT_TRAP"
640-
ActErrno LinuxSeccompAction = "SCMP_ACT_ERRNO"
641-
ActTrace LinuxSeccompAction = "SCMP_ACT_TRACE"
642-
ActAllow LinuxSeccompAction = "SCMP_ACT_ALLOW"
643-
ActLog LinuxSeccompAction = "SCMP_ACT_LOG"
638+
ActKill LinuxSeccompAction = "SCMP_ACT_KILL"
639+
ActKillProcess LinuxSeccompAction = "SCMP_ACT_KILL_PROCESS"
640+
ActTrap LinuxSeccompAction = "SCMP_ACT_TRAP"
641+
ActErrno LinuxSeccompAction = "SCMP_ACT_ERRNO"
642+
ActTrace LinuxSeccompAction = "SCMP_ACT_TRACE"
643+
ActAllow LinuxSeccompAction = "SCMP_ACT_ALLOW"
644+
ActLog LinuxSeccompAction = "SCMP_ACT_LOG"
644645
)
645646

646647
// LinuxSeccompOperator used to match syscall arguments in Seccomp

0 commit comments

Comments
 (0)