summaryrefslogtreecommitdiff
path: root/src/arch-mips64-syscalls.c
diff options
context:
space:
mode:
authorJustin Cormack <justin.cormack@docker.com>2016-12-26 17:59:12 +0000
committerPaul Moore <paul@paul-moore.com>2017-01-25 05:10:47 -0500
commitd9102f12fd39bd77151a1f630fcfc8c80f86c55c (patch)
tree69d70af24a266acb80115e3dae65d0f52ca30de1 /src/arch-mips64-syscalls.c
parentaa3a022be41d8312a4ffe923e3b1d0cff467da8e (diff)
downloadlibseccomp-d9102f12fd39bd77151a1f630fcfc8c80f86c55c.tar.gz
arch: update syscalls for Linux 4.9
Add support for the following syscalls added in Linux v4.9: - preadv2 and pwritev2 - pkey_mprotect, pkey_alloc, pkey_free Signed-off-by: Justin Cormack <justin.cormack@docker.com> [PM: update subject line, description, and some whitespace] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src/arch-mips64-syscalls.c')
-rw-r--r--src/arch-mips64-syscalls.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arch-mips64-syscalls.c b/src/arch-mips64-syscalls.c
index 80db447..bbf8906 100644
--- a/src/arch-mips64-syscalls.c
+++ b/src/arch-mips64-syscalls.c
@@ -30,7 +30,7 @@
/* 64 ABI */
#define __SCMP_NR_BASE 5000
-/* NOTE: based on Linux 4.5-rc4 */
+/* NOTE: based on Linux 4.9 */
const struct arch_syscall_def mips64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", (__SCMP_NR_BASE + 22) },
@@ -258,11 +258,15 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
{ "pipe", (__SCMP_NR_BASE + 21) },
{ "pipe2", (__SCMP_NR_BASE + 287) },
{ "pivot_root", (__SCMP_NR_BASE + 151) },
+ { "pkey_alloc", (__SCMP_NR_BASE + 324) },
+ { "pkey_free", (__SCMP_NR_BASE + 325) },
+ { "pkey_mprotect", (__SCMP_NR_BASE + 323) },
{ "poll", (__SCMP_NR_BASE + 7) },
{ "ppoll", (__SCMP_NR_BASE + 261) },
{ "prctl", (__SCMP_NR_BASE + 153) },
{ "pread64", (__SCMP_NR_BASE + 16) },
{ "preadv", (__SCMP_NR_BASE + 289) },
+ { "preadv2", (__SCMP_NR_BASE + 321) },
{ "prlimit64", (__SCMP_NR_BASE + 297) },
{ "process_vm_readv", (__SCMP_NR_BASE + 304) },
{ "process_vm_writev", (__SCMP_NR_BASE + 305) },
@@ -273,6 +277,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
{ "putpmsg", (__SCMP_NR_BASE + 175) },
{ "pwrite64", (__SCMP_NR_BASE + 17) },
{ "pwritev", (__SCMP_NR_BASE + 290) },
+ { "pwritev2", (__SCMP_NR_BASE + 322) },
{ "query_module", (__SCMP_NR_BASE + 171) },
{ "quotactl", (__SCMP_NR_BASE + 172) },
{ "read", (__SCMP_NR_BASE + 0) },