kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 169a4e7c5df6d858c4bd8c57572995d1bd61ce31
parent 3c3a93e5c510caaeb966d203aebbd20d0c5cdffd
Author: Joris Vink <joris@coders.se>
Date:   Thu, 17 Feb 2022 14:46:33 +0100

wrap 2 more syscalls in ifdefs.

Diffstat:
src/seccomp.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/seccomp.c b/src/seccomp.c @@ -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),