]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/seccomp: Abort without user notification support
authorKees Cook <keescook@chromium.org>
Thu, 17 Jan 2019 00:35:25 +0000 (16:35 -0800)
committerShuah Khan <shuah@kernel.org>
Thu, 17 Jan 2019 18:00:23 +0000 (11:00 -0700)
commit84db6df35dc9700402eb5440964af3a2426f5eb6
treeeac7f01bb07996a0c0a8ff42283e8106a138a5d4
parent07bd13c4ad9610cba4efc6719584842e4ea47662
selftests/seccomp: Abort without user notification support

In the face of missing user notification support, the self test needs
to stop executing a test (ASSERT_*) instead of just reporting and
continuing (EXPECT_*). This adjusts the user notification tests to do
that where needed.

Reported-by: Shuah Khan <shuah@kernel.org>
Fixes: 388c4c8f99d2 ("seccomp: add a return code to trap to userspace")
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Tycho Andersen <tycho@tycho.ws>
Tested-by: Shuah Khan <shuah@kernel.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
tools/testing/selftests/seccomp/seccomp_bpf.c