commit 05e0e086dadc9276357d842148c47f364bea83c9
parent 94d74cdfed7ba7f479a0e542e197b0205e846cb5
Author: Frederic Cambus <fred@statdns.com>
Date: Sat, 26 Oct 2019 18:29:35 +0200
Use __NR_ instead of SYS_ prefix in LOGSWAN_ALLOW_SYSCALL.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/seccomp.h b/src/seccomp.h
@@ -22,7 +22,7 @@
#include <linux/seccomp.h>
#define LOGSWAN_ALLOW_SYSCALL(syscall) \
- BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_##syscall, 0, 1), \
+ BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_##syscall, 0, 1), \
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
static struct sock_filter filter[] = {