diff options
author | Paul Moore <pmoore@redhat.com> | 2015-05-06 12:05:45 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-05-06 12:05:45 -0400 |
commit | a710a2d246bdc73ba77e3ff5624e790688cc51fd (patch) | |
tree | 76f3356cc31d1023cc71e55bbb470801589039c0 /src/arch-arm-syscalls.c | |
parent | d1019115acdc8460c9a1f8a878768001a3c32431 (diff) | |
download | libseccomp-a710a2d246bdc73ba77e3ff5624e790688cc51fd.tar.gz |
arm: add some missing syscalls
Add the following syscalls to the ARM arch/ABI and update the syscall
validation script.
* breakpoint()
* cacheflush()
* usr26()
* usr32()
* set_tls()
Reported-by: Purcareata Bogdan <b43198@freescale.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/arch-arm-syscalls.c')
-rw-r--r-- | src/arch-arm-syscalls.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arch-arm-syscalls.c b/src/arch-arm-syscalls.c index b574ccc..c478256 100644 --- a/src/arch-arm-syscalls.c +++ b/src/arch-arm-syscalls.c @@ -27,6 +27,7 @@ #include "arch-arm.h" #define __NR_OABI_SYSCALL_BASE 0x900000 +#define __ARM_NR_BASE 0x0f0000 /* NOTE: we currently only support the ARM EABI, more info at the URL below: * -> http://wiki.embeddedarm.com/wiki/EABI_vs_OABI */ @@ -57,9 +58,10 @@ const struct arch_syscall_def arm_syscall_table[] = { \ { "bind", (__NR_SYSCALL_BASE + 282) }, { "bpf", (__NR_SYSCALL_BASE + 386) }, { "break", __PNR_break }, + { "breakpoint", (__NR_SYSCALL_BASE + (__ARM_NR_BASE + 1)) }, { "brk", (__NR_SYSCALL_BASE + 45) }, { "cachectl", __PNR_cachectl }, - { "cacheflush", __PNR_cacheflush }, + { "cacheflush", (__NR_SYSCALL_BASE + (__ARM_NR_BASE + 2)) }, { "capget", (__NR_SYSCALL_BASE + 184) }, { "capset", (__NR_SYSCALL_BASE + 185) }, { "chdir", (__NR_SYSCALL_BASE + 12) }, @@ -333,6 +335,7 @@ const struct arch_syscall_def arm_syscall_table[] = { \ { "set_robust_list", (__NR_SYSCALL_BASE + 338) }, { "set_thread_area", __PNR_set_thread_area }, { "set_tid_address", (__NR_SYSCALL_BASE + 256) }, + { "set_tls", (__NR_SYSCALL_BASE + (__ARM_NR_BASE + 5)) }, { "setdomainname", (__NR_SYSCALL_BASE + 121) }, { "setfsgid", (__NR_SYSCALL_BASE + 139) }, { "setfsgid32", (__NR_SYSCALL_BASE + 216) }, @@ -428,6 +431,8 @@ const struct arch_syscall_def arm_syscall_table[] = { \ { "unlinkat", (__NR_SYSCALL_BASE + 328) }, { "unshare", (__NR_SYSCALL_BASE + 337) }, { "uselib", (__NR_SYSCALL_BASE + 86) }, + { "usr26", (__NR_SYSCALL_BASE + (__ARM_NR_BASE + 3)) }, + { "usr32", (__NR_SYSCALL_BASE + (__ARM_NR_BASE + 4)) }, { "ustat", (__NR_SYSCALL_BASE + 62) }, { "utime", __PNR_utime }, { "utimensat", (__NR_SYSCALL_BASE + 348) }, |