Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit ae155cd

Browse files
committed
Add support to ActKillProcess
Signed-off-by: Paulo Gomes <[email protected]>
1 parent f6414f9 commit ae155cd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

types.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ type Action string
5454

5555
// Define actions for Seccomp rules
5656
const (
57-
ActKill Action = "SCMP_ACT_KILL"
58-
ActTrap Action = "SCMP_ACT_TRAP"
59-
ActErrno Action = "SCMP_ACT_ERRNO"
60-
ActTrace Action = "SCMP_ACT_TRACE"
61-
ActAllow Action = "SCMP_ACT_ALLOW"
62-
ActLog Action = "SCMP_ACT_LOG"
57+
// ActKill results in termination of the thread that made the system call.
58+
ActKill Action = "SCMP_ACT_KILL"
59+
// ActKillProcess results in termination of the entire process.
60+
ActKillProcess Action = "SCMP_ACT_KILL_PROCESS"
61+
ActTrap Action = "SCMP_ACT_TRAP"
62+
ActErrno Action = "SCMP_ACT_ERRNO"
63+
ActTrace Action = "SCMP_ACT_TRACE"
64+
ActAllow Action = "SCMP_ACT_ALLOW"
65+
ActLog Action = "SCMP_ACT_LOG"
6366
)
6467

6568
// Operator used to match syscall arguments in Seccomp

0 commit comments

Comments
 (0)