Skip to content

Commit 3b90240

Browse files
saschagrunertcyphar
authored andcommitted
Add support for seccomp actions ActKillThread and ActKillProcess
Two new seccomp actions have been added to the libseccomp-golang dependency, which can be now supported by runc, too. ActKillThread kills the thread that violated the rule. It is the same as ActKill. All other threads from the same thread group will continue to execute. ActKillProcess kills the process that violated the rule. All threads in the thread group are also terminated. This action is only usable when libseccomp API level 3 or higher is supported. Signed-off-by: Sascha Grunert <sgrunert@redhat.com> Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
1 parent c2b2629 commit 3b90240

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcontainer/configs/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ const (
5050
Trace
5151
Log
5252
Notify
53+
KillThread
54+
KillProcess
5355
)
5456

5557
// Operator is a comparison operator to be used when matching syscall arguments in Seccomp

0 commit comments

Comments
 (0)