commit d2334300226a98fb34b7a32974f6e65ba447adc9
parent db8398e788e4700fbd02071baf952c8d2fec4f28
Author: Frederic Cambus <fred@statdns.com>
Date: Thu, 25 Jun 2020 15:18:15 +0200
Use __NR_ instead of SYS_ prefix in #if defined checks.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/seccomp.h b/src/seccomp.h
@@ -49,21 +49,21 @@ static struct sock_filter filter[] = {
ANSILOVE_SYSCALL_ALLOW(close),
ANSILOVE_SYSCALL_ALLOW(exit_group),
ANSILOVE_SYSCALL_ALLOW(fstat),
-#if defined(SYS_fstat64)
+#if defined(__NR_fstat64)
ANSILOVE_SYSCALL_ALLOW(fstat64), /* i386 glibc */
#endif
ANSILOVE_SYSCALL_ALLOW(ioctl),
ANSILOVE_SYSCALL_ALLOW(lseek),
-#if defined(SYS__llseek)
+#if defined(__NR__llseek)
ANSILOVE_SYSCALL_ALLOW(_llseek), /* i386 glibc */
#endif
-#if defined(SYS_open)
+#if defined(__NR_open)
ANSILOVE_SYSCALL_ALLOW(open),
#endif
ANSILOVE_SYSCALL_ALLOW(openat),
ANSILOVE_SYSCALL_ALLOW(madvise),
ANSILOVE_SYSCALL_ALLOW(mmap),
-#if defined(SYS_mmap2)
+#if defined(__NR_mmap2)
ANSILOVE_SYSCALL_ALLOW(mmap2), /* i386 glibc */
#endif
ANSILOVE_SYSCALL_ALLOW(mremap),