]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests/seccomp: Add test for unknown SECCOMP_RET kill behavior
authorKees Cook <keescook@chromium.org>
Tue, 8 Sep 2020 19:28:27 +0000 (12:28 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 8 Sep 2020 23:26:07 +0000 (16:26 -0700)
commit3932fcecd96221e18100055d623b736d0ff873a4
treea559352c6abf73ee7887746f2d06bcd5ef896e68
parent4d671d922d51907bc41f1f7f2dc737c928ae78fd
selftests/seccomp: Add test for unknown SECCOMP_RET kill behavior

While we were testing for the behavior of unknown seccomp filter return
values, there was no test for how it acted in a thread group. Add a test
in the thread group tests for this.

Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/seccomp/seccomp_bpf.c