summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kselftest_harness.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-04-12 01:56:31 +0200
committerShuah Khan <skhan@linuxfoundation.org>2019-04-17 01:04:08 +0200
commit9dd3fcb0ab73cb1e00b8562ef027a38521aaff87 (patch)
tree6f1a971fc65ad50b3759c272dce909e834b3aeb4 /tools/testing/selftests/kselftest_harness.h
parentselftests: cgroup: fix cleanup path in test_memcg_subtree_control() (diff)
downloadlinux-9dd3fcb0ab73cb1e00b8562ef027a38521aaff87.tar.xz
linux-9dd3fcb0ab73cb1e00b8562ef027a38521aaff87.zip
selftests/seccomp: Handle namespace failures gracefully
When running without USERNS or PIDNS the seccomp test would hang since it was waiting forever for the child to trigger the user notification since it seems the glibc() abort handler makes a call to getpid(), which would trap again. This changes the getpid filter to getppid, and makes sure ASSERTs execute to stop from spawning the listener. Reported-by: Shuah Khan <shuah@kernel.org> Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") Cc: stable@vger.kernel.org # > 5.0 Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Tycho Andersen <tycho@tycho.ws> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/kselftest_harness.h')
0 files changed, 0 insertions, 0 deletions