From a93f00cc8e0e3f24a6ea2cbf4beb5572357a4c3d Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 30 Aug 2017 09:41:46 -0400 Subject: tentative fix for Debian cross-platform build --- src/fseccomp/seccomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fseccomp/seccomp.c b/src/fseccomp/seccomp.c index 8abc249ec..7262bc2ca 100644 --- a/src/fseccomp/seccomp.c +++ b/src/fseccomp/seccomp.c @@ -203,12 +203,12 @@ void memory_deny_write_execute(const char *fname) { // build filter static const struct sock_filter filter[] = { -#ifndef __x86_64__ +#ifdef __i386__ // block old multiplexing mmap syscall for i386 BLACKLIST(SYS_mmap), #endif // block mmap(,,x|PROT_WRITE|PROT_EXEC) so W&X memory can't be created -#ifndef __x86_64__ +#ifdef __i386__ // mmap2 is used for mmap on i386 these days BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_mmap2, 0, 5), #else -- cgit v1.2.3-54-g00ecf