selftests/seccomp: add support for s390
authorKees Cook <keescook@chromium.org>
Fri, 21 Aug 2015 18:22:35 +0000 (11:22 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 14 Sep 2015 22:41:37 +0000 (16:41 -0600)
commitb623c4daadb5a4bfaef62783085b95bd9ba5a77c
treeffe99d71c008aeb7adedc79a2848954cd432c9a5
parent7ef7cc9fdf9853b3027c55b9481991695ad5e5b2
selftests/seccomp: add support for s390

This adds support for s390 to the seccomp selftests. Some improvements
were made to enhance the accuracy of failure reporting, and additional
tests were added to validate assumptions about the currently traced
syscall. Also adds early asserts for running on older kernels to avoid
noise when the seccomp syscall is not implemented.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/seccomp/seccomp_bpf.c
tools/testing/selftests/seccomp/test_harness.h