[PATCH v2 4/4] selftests/seccomp: Test thread vs process killing

2017-08-07 Thread Kees Cook
SECCOMP_RET_KILL is supposed to kill the current thread (and userspace depends on this), so test for this, distinct from killing the entire process. This also tests killing the entire process with the new SECCOMP_FILTER_FLAG_KILL_PROCESS flag. (This also moves a bunch of defines up earlier in the

[PATCH v2 4/4] selftests/seccomp: Test thread vs process killing

2017-08-07 Thread Kees Cook
SECCOMP_RET_KILL is supposed to kill the current thread (and userspace depends on this), so test for this, distinct from killing the entire process. This also tests killing the entire process with the new SECCOMP_FILTER_FLAG_KILL_PROCESS flag. (This also moves a bunch of defines up earlier in the