mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
wrap 2 more syscalls in ifdefs.
This commit is contained in:
parent
3c3a93e5c5
commit
169a4e7c5d
@ -102,7 +102,9 @@ static struct sock_filter filter_kore[] = {
|
||||
KORE_SYSCALL_ALLOW(geteuid),
|
||||
KORE_SYSCALL_ALLOW(exit_group),
|
||||
KORE_SYSCALL_ALLOW(nanosleep),
|
||||
#if defined(SYS_clock_nanosleep)
|
||||
KORE_SYSCALL_ALLOW(clock_nanosleep),
|
||||
#endif
|
||||
#if defined(SYS_sigreturn)
|
||||
KORE_SYSCALL_ALLOW(sigreturn),
|
||||
#endif
|
||||
@ -159,7 +161,9 @@ static struct sock_filter filter_kore[] = {
|
||||
|
||||
/* "Other" without clear category. */
|
||||
KORE_SYSCALL_ALLOW(futex),
|
||||
#if defined(SYS_clock_gettime)
|
||||
KORE_SYSCALL_ALLOW(clock_gettime),
|
||||
#endif
|
||||
|
||||
#if defined(__NR_getrandom)
|
||||
KORE_SYSCALL_ALLOW(getrandom),
|
||||
|
Loading…
x
Reference in New Issue
Block a user