aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-03-22 10:02:16 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-03-22 10:02:16 -0400
commit93e0a36bf433442ec77e9d7d18e097db1447e93c (patch)
tree1b09ea3770cfce63ac3ea6bf17c6bfba87317d2e /src
parentfix seccomp compile on Debian wheezy (diff)
downloadfirejail-93e0a36bf433442ec77e9d7d18e097db1447e93c.tar.gz
firejail-93e0a36bf433442ec77e9d7d18e097db1447e93c.tar.zst
firejail-93e0a36bf433442ec77e9d7d18e097db1447e93c.zip
fix seccomp compile problem on Debian wheezy 32bit
Diffstat (limited to 'src')
-rw-r--r--src/include/seccomp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/seccomp.h b/src/include/seccomp.h
index 8f0686a94..4f84e3c45 100644
--- a/src/include/seccomp.h
+++ b/src/include/seccomp.h
@@ -230,9 +230,12 @@ struct seccomp_data {
230 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ARCH_32, 1, 0), \ 230 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, ARCH_32, 1, 0), \
231 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW) 231 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
232 232
233#ifndef X32_SYSCALL_BIT
234#define X32_SYSCALL_BIT 0x40000000
235#endif
236
233#if defined(__x86_64__) 237#if defined(__x86_64__)
234// handle X32 ABI 238// handle X32 ABI
235#define X32_SYSCALL_BIT 0x40000000
236#define HANDLE_X32 \ 239#define HANDLE_X32 \
237 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, X32_SYSCALL_BIT, 1, 0), \ 240 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, X32_SYSCALL_BIT, 1, 0), \
238 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 0, 1, 0), \ 241 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, 0, 1, 0), \