commit b96f287adb1a56288011783fe2276f02e0b6a70b
parent 778339112e709406438f01aac81f3b93b6692843
Author: Frederic Cambus <fred@statdns.com>
Date: Thu, 25 Jun 2020 14:57:50 +0200
Use __NR_ instead of SYS_ prefix in #if defined checks.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/seccomp.h b/src/seccomp.h
@@ -4,7 +4,7 @@
* https://www.statdns.com
*
* Created: 2012-02-13
- * Last Updated: 2020-06-24
+ * Last Updated: 2020-06-25
*
* StatZone is released under the BSD 2-Clause license
* See LICENSE file for details.
@@ -49,11 +49,11 @@ static struct sock_filter filter[] = {
STATZONE_SYSCALL_ALLOW(close),
STATZONE_SYSCALL_ALLOW(exit_group),
STATZONE_SYSCALL_ALLOW(fstat),
-#if defined(SYS_fstat64)
+#if defined(__NR_fstat64)
STATZONE_SYSCALL_ALLOW(fstat64), /* i386 glibc */
#endif
STATZONE_SYSCALL_ALLOW(ioctl),
-#if defined(SYS_open)
+#if defined(__NR_open)
STATZONE_SYSCALL_ALLOW(open),
#endif
STATZONE_SYSCALL_ALLOW(openat),