linux/tools/testing/selftests/seccomp
Thadeu Lima de Souza Cascardo d42b8dbec4 selftests/seccomp: allow clock_nanosleep instead of nanosleep
glibc 2.31 calls clock_nanosleep when its nanosleep function is used. So
the restart_syscall fails after that. In order to deal with it, we trace
clock_nanosleep and nanosleep. Then we check for either.

This works just fine on systems with both glibc 2.30 and glibc 2.31,
whereas it failed before on a system with glibc 2.31.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2020-04-14 09:49:51 -06:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
config selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
Makefile selftests: Fix seccomp to support relocatable build (O=objdir) 2020-03-26 15:28:19 -06:00
seccomp_benchmark.c selftests/seccomp: Add simple seccomp overhead benchmark 2017-08-14 13:46:41 -07:00
seccomp_bpf.c selftests/seccomp: allow clock_nanosleep instead of nanosleep 2020-04-14 09:49:51 -06:00