diff options
author | Paul Moore <pmoore@redhat.com> | 2015-04-10 10:31:04 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-04-10 10:31:04 -0400 |
commit | d1019115acdc8460c9a1f8a878768001a3c32431 (patch) | |
tree | aaa5a1aaa13121c9dbe5f282b462643f84f7d37d /src/arch-syscall-validate | |
parent | f530cb495857c3d9fcf9d82b74893aec9caa6053 (diff) | |
download | libseccomp-d1019115acdc8460c9a1f8a878768001a3c32431.tar.gz |
arm: fix some problems with the syscall table
The 32-bit ARM syscall table mistakenly included syscall definitions
for the syscalls below. This patch redefines those syscalls to
libseccomp's pseudo-syscall numbers and corrects the
arch-syscall-validate to correctly list the 32-bit ARM syscalls.
* time
* umount
* stime
* alarm
* utime
* getrlimit
* select
* readdir
* mmap
* socketcall
* syscall
* ipc
Reported-by: Andreas Farber <afaerber@suse.de>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/arch-syscall-validate')
-rwxr-xr-x | src/arch-syscall-validate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch-syscall-validate b/src/arch-syscall-validate index 2cbf696..1616c9f 100755 --- a/src/arch-syscall-validate +++ b/src/arch-syscall-validate @@ -146,7 +146,7 @@ function dump_lib_x32() { # function dump_sys_arm() { # NOTE: arm_sync_file_range() and sync_file_range2() share values - cat $1/arch/arm/include/uapi/asm/unistd.h | \ + gcc -E -dM -D __ARM_EABI__ $1/arch/arm/include/uapi/asm/unistd.h | \ grep "^#define __NR_" | sort | \ grep -v "^#define __NR_OABI_SYSCALL_BASE" | \ grep -v "^#define __NR_SYSCALL_BASE" | \ |