diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/seccomp.h | 5 |
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), \ |