summaryrefslogtreecommitdiff
path: root/src/arch-arm-syscalls.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-01-25 10:29:22 -0500
committerPaul Moore <paul@paul-moore.com>2017-01-25 10:29:22 -0500
commit486c16401ea59657750987b19641d4b8fcc972e2 (patch)
tree808e7cce3d18da5ddd04eace061a6451641c410e /src/arch-arm-syscalls.c
parente58bfa9032a5e15e2081ddfdda040e7a29de58b9 (diff)
downloadlibseccomp-486c16401ea59657750987b19641d4b8fcc972e2.tar.gz
all: update the syscall validation code/scripts for January 2017
A variety of updates to reflect changes in the Linux Kernel and the library itself with the goal of making sure the syscall checking scripts continue to work. Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src/arch-arm-syscalls.c')
-rw-r--r--src/arch-arm-syscalls.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch-arm-syscalls.c b/src/arch-arm-syscalls.c
index e7e2d31..6f40caa 100644
--- a/src/arch-arm-syscalls.c
+++ b/src/arch-arm-syscalls.c
@@ -518,15 +518,15 @@ const char *arm_syscall_resolve_num(int num)
}
/**
- * Iterate through the syscall table and return the syscall name
+ * Iterate through the syscall table and return the syscall mapping
* @param spot the offset into the syscall table
*
- * Return the syscall name at position @spot or NULL on failure. This function
- * should only ever be used internally by libseccomp.
+ * Return the syscall mapping at position @spot or NULL on failure. This
+ * function should only ever be used internally by libseccomp.
*
*/
-const char *arm_syscall_iterate_name(unsigned int spot)
+const struct arch_syscall_def *arm_syscall_iterate(unsigned int spot)
{
/* XXX - no safety checks here */
- return arm_syscall_table[spot].name;
+ return &arm_syscall_table[spot];
}