selftests/seccomp: Test thread vs process killing
authorKees Cook <keescook@chromium.org>
Fri, 11 Aug 2017 20:20:33 +0000 (13:20 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 14 Aug 2017 20:46:50 +0000 (13:46 -0700)
commitf3e1821d9e1cc3fb434d7763001791dcd6720c90
tree931e232f1700eea2824ead3f1b94b79c04a686ee
parent0466bdb99e8744bc9befa8d62a317f0fd7fd7421
selftests/seccomp: Test thread vs process killing

This verifies that SECCOMP_RET_KILL_PROCESS is higher priority than
SECCOMP_RET_KILL_THREAD. (This also moves a bunch of defines up earlier
in the file to use them earlier.)

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Tyler Hicks <tyhicks@canonical.com>
tools/testing/selftests/seccomp/seccomp_bpf.c