]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: allow clock_nanosleep in seccomp tests
authorDaiki Ueno <ueno@gnu.org>
Mon, 7 Sep 2020 07:52:52 +0000 (09:52 +0200)
committerDaiki Ueno <ueno@gnu.org>
Fri, 18 Sep 2020 08:12:24 +0000 (10:12 +0200)
The nanosleep wrapper in glibc has changed the implementation using
the clock_nanosleep syscall:
https://sourceware.org/git/?p=glibc.git;a=commit;h=3537ecb49cf7177274607004c562d6f9ecc99474

Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/seccomp.c

index 7137c87b29834c5cf1ab8185c398723ab39c2084..ed14d002983a9c122bd972a60ede8c07de4f109e 100644 (file)
@@ -52,6 +52,7 @@ int disable_system_calls(void)
        }
 
        ADD_SYSCALL(nanosleep, 0);
+       ADD_SYSCALL(clock_nanosleep, 0);
        ADD_SYSCALL(time, 0);
        ADD_SYSCALL(getpid, 0);
        ADD_SYSCALL(gettimeofday, 0);