chiark / gitweb /
execute: Fix seccomp support on x32
authorJonathan Callen <abcd@gentoo.org>
Wed, 25 Jul 2012 02:45:22 +0000 (22:45 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 19 Jan 2013 17:03:06 +0000 (12:03 -0500)
commit843fc7f7f26a6507fe896a79ed1b474c35c4300f
treebd465b18a828d0abbc5505f2d63fc7ccb5817208
parent25da63b9dac8f166ebf390ca92d1de18fbfc9d11
execute: Fix seccomp support on x32

In the x32 ABI, syscall numbers start at 0x40000000.  Mask that bit on
x32 for lookups in the syscall_names array and syscall_filter and ensure
that syscall.h is parsed correctly.

[zj: added SYSCALL_TO_INDEX, INDEX_TO_SYSCALL macros.]
Makefile.am
src/core/execute.c
src/core/load-fragment.c
src/core/syscall-list.c
src/core/syscall-list.h