Fix typo in statx macro (#7180)
authorAntonio Rojas <arojas@archlinux.org>
Fri, 10 Nov 2017 10:07:36 +0000 (11:07 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Nov 2017 10:07:36 +0000 (11:07 +0100)
This makes statx properly whitelisted in supported systems.

src/shared/seccomp-util.c

index 14a75bf..f877016 100644 (file)
@@ -465,7 +465,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "stat64\0"
                 "statfs\0"
                 "statfs64\0"
-#ifdef __PNR_statx
+#ifdef __NR_statx
                 "statx\0"
 #endif
                 "symlink\0"