summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2015-02-09 12:25:23 -0500
committerPaul Moore <pmoore@redhat.com>2015-02-09 12:25:23 -0500
commit7b80fb2fb683cafaf5dc9ff7692437ba86e598a3 (patch)
treeac42964285d250685ed34baeec29278fccd4af1b
parentda7c08dd54e9403d0c5b62baf38c37db838b7013 (diff)
downloadlibseccomp-7b80fb2fb683cafaf5dc9ff7692437ba86e598a3.tar.gz
all: update syscall tables for Linux v3.19
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r--include/seccomp.h.in4
-rw-r--r--src/arch-aarch64-syscalls.c6
-rw-r--r--src/arch-arm-syscalls.c4
-rw-r--r--src/arch-mips-syscalls.c8
-rw-r--r--src/arch-mips64-syscalls.c8
-rw-r--r--src/arch-mips64n32-syscalls.c8
-rw-r--r--src/arch-x32-syscalls.c4
-rw-r--r--src/arch-x86-syscalls.c4
-rw-r--r--src/arch-x86_64-syscalls.c4
9 files changed, 33 insertions, 17 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 658107e..6a115d1 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -1237,12 +1237,12 @@ int seccomp_export_bpf(const scmp_filter_ctx ctx, int fd);
#define __PNR_getrandom -10109
#ifndef __NR_getrandom
#define __NR_getrandom __PNR_getrandom
-#endif /* __NR_getrandom */
+#endif /* __NR_getrandom - NO LONGER NEEDED */
#define __PNR_memfd_create -10110
#ifndef __NR_memfd_create
#define __NR_memfd_create __PNR_memfd_create
-#endif /* __NR_memfd_create */
+#endif /* __NR_memfd_create - NO LONGER NEEDED */
#define __PNR_kexec_file_load -10111
#ifndef __NR_kexec_file_load
diff --git a/src/arch-aarch64-syscalls.c b/src/arch-aarch64-syscalls.c
index 650c50c..f17172e 100644
--- a/src/arch-aarch64-syscalls.c
+++ b/src/arch-aarch64-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-aarch64.h"
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def aarch64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", __PNR__newselect },
@@ -44,6 +44,7 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \
{ "arch_prctl", __PNR_arch_prctl },
{ "bdflush", __PNR_bdflush },
{ "bind", 200 },
+ { "bpf", 280 },
{ "break", __PNR_break },
{ "brk", 214 },
{ "cachectl", __PNR_cachectl },
@@ -79,6 +80,7 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \
{ "eventfd", __PNR_eventfd },
{ "eventfd2", 19 },
{ "execve", 221 },
+ { "execveat", 281 },
{ "exit", 93 },
{ "exit_group", 94 },
{ "faccessat", 48 },
@@ -193,7 +195,7 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \
{ "lstat64", __PNR_lstat64 },
{ "madvise", 233 },
{ "mbind", 235 },
- { "memfd_create", __PNR_memfd_create },
+ { "memfd_create", 279 },
{ "migrate_pages", 238 },
{ "mincore", 232 },
{ "mkdir", __PNR_mkdir },
diff --git a/src/arch-arm-syscalls.c b/src/arch-arm-syscalls.c
index 79af9f0..8876135 100644
--- a/src/arch-arm-syscalls.c
+++ b/src/arch-arm-syscalls.c
@@ -36,7 +36,7 @@
#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
#endif
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def arm_syscall_table[] = { \
/* NOTE: arm_sync_file_range() and sync_file_range2() share values */
{ "_llseek", (__NR_SYSCALL_BASE + 140) },
@@ -55,6 +55,7 @@ const struct arch_syscall_def arm_syscall_table[] = { \
{ "arch_prctl", __PNR_arch_prctl },
{ "bdflush", (__NR_SYSCALL_BASE + 134) },
{ "bind", (__NR_SYSCALL_BASE + 282) },
+ { "bpf", (__NR_SYSCALL_BASE + 386) },
{ "break", __PNR_break },
{ "brk", (__NR_SYSCALL_BASE + 45) },
{ "cachectl", __PNR_cachectl },
@@ -90,6 +91,7 @@ const struct arch_syscall_def arm_syscall_table[] = { \
{ "eventfd", (__NR_SYSCALL_BASE + 351) },
{ "eventfd2", (__NR_SYSCALL_BASE + 356) },
{ "execve", (__NR_SYSCALL_BASE + 11) },
+ { "execveat", (__NR_SYSCALL_BASE + 387) },
{ "exit", (__NR_SYSCALL_BASE + 1) },
{ "exit_group", (__NR_SYSCALL_BASE + 248) },
{ "faccessat", (__NR_SYSCALL_BASE + 334) },
diff --git a/src/arch-mips-syscalls.c b/src/arch-mips-syscalls.c
index 3a5cec4..29831da 100644
--- a/src/arch-mips-syscalls.c
+++ b/src/arch-mips-syscalls.c
@@ -30,7 +30,7 @@
/* O32 ABI */
#define __NR_SYSCALL_BASE 4000
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def mips_syscall_table[] = { \
{ "_llseek", (__NR_SYSCALL_BASE + 140) },
{ "_newselect", (__NR_SYSCALL_BASE + 142) },
@@ -48,6 +48,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \
{ "arch_prctl", __PNR_arch_prctl },
{ "bdflush", (__NR_SYSCALL_BASE + 134) },
{ "bind", (__NR_SYSCALL_BASE + 169) },
+ { "bpf", (__NR_SYSCALL_BASE + 355) },
{ "break", __NR_SYSCALL_BASE + 17 },
{ "brk", (__NR_SYSCALL_BASE + 45) },
{ "cachectl", (__NR_SYSCALL_BASE + 148) },
@@ -83,6 +84,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \
{ "eventfd", (__NR_SYSCALL_BASE + 319) },
{ "eventfd2", (__NR_SYSCALL_BASE + 325) },
{ "execve", (__NR_SYSCALL_BASE + 11) },
+ { "execveat", (__NR_SYSCALL_BASE + 356) },
{ "exit", (__NR_SYSCALL_BASE + 1) },
{ "exit_group", (__NR_SYSCALL_BASE + 246) },
{ "faccessat", (__NR_SYSCALL_BASE + 300) },
@@ -142,7 +144,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \
{ "getpmsg", (__NR_SYSCALL_BASE + 208) },
{ "getppid", (__NR_SYSCALL_BASE + 64) },
{ "getpriority", (__NR_SYSCALL_BASE + 96) },
- { "getrandom", __PNR_getrandom },
+ { "getrandom", (__NR_SYSCALL_BASE + 353) },
{ "getresgid", (__NR_SYSCALL_BASE + 191) },
{ "getresgid32", __PNR_getresgid32 },
{ "getresuid", (__NR_SYSCALL_BASE + 186) },
@@ -197,7 +199,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \
{ "lstat64", (__NR_SYSCALL_BASE + 214) },
{ "madvise", (__NR_SYSCALL_BASE + 218) },
{ "mbind", (__NR_SYSCALL_BASE + 268) },
- { "memfd_create", __PNR_memfd_create },
+ { "memfd_create", (__NR_SYSCALL_BASE + 354) },
{ "migrate_pages", (__NR_SYSCALL_BASE + 287) },
{ "mincore", (__NR_SYSCALL_BASE + 217) },
{ "mkdir", (__NR_SYSCALL_BASE + 39) },
diff --git a/src/arch-mips64-syscalls.c b/src/arch-mips64-syscalls.c
index 9300f75..8b1fe9e 100644
--- a/src/arch-mips64-syscalls.c
+++ b/src/arch-mips64-syscalls.c
@@ -30,7 +30,7 @@
/* 64 ABI */
#define __NR_SYSCALL_BASE 5000
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def mips64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", (__NR_SYSCALL_BASE + 22) },
@@ -48,6 +48,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
{ "arch_prctl", __PNR_arch_prctl },
{ "bdflush", __PNR_bdflush },
{ "bind", (__NR_SYSCALL_BASE + 48) },
+ { "bpf", (__NR_SYSCALL_BASE + 315) },
{ "break", __PNR_break },
{ "brk", (__NR_SYSCALL_BASE + 12) },
{ "cachectl", (__NR_SYSCALL_BASE + 198) },
@@ -83,6 +84,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
{ "eventfd", (__NR_SYSCALL_BASE + 278) },
{ "eventfd2", (__NR_SYSCALL_BASE + 284) },
{ "execve", (__NR_SYSCALL_BASE + 57) },
+ { "execveat", (__NR_SYSCALL_BASE + 316) },
{ "exit", (__NR_SYSCALL_BASE + 58) },
{ "exit_group", (__NR_SYSCALL_BASE + 205) },
{ "faccessat", (__NR_SYSCALL_BASE + 259) },
@@ -142,7 +144,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
{ "getpmsg", (__NR_SYSCALL_BASE + 174) },
{ "getppid", (__NR_SYSCALL_BASE + 108) },
{ "getpriority", (__NR_SYSCALL_BASE + 137) },
- { "getrandom", __PNR_getrandom },
+ { "getrandom", (__NR_SYSCALL_BASE + 313) },
{ "getresgid", (__NR_SYSCALL_BASE + 118) },
{ "getresgid32", __PNR_getresgid32 },
{ "getresuid", (__NR_SYSCALL_BASE + 116) },
@@ -197,7 +199,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
{ "lstat64", __PNR_lstat64 },
{ "madvise", (__NR_SYSCALL_BASE + 27) },
{ "mbind", (__NR_SYSCALL_BASE + 227) },
- { "memfd_create", __PNR_memfd_create },
+ { "memfd_create", (__NR_SYSCALL_BASE + 314) },
{ "migrate_pages", (__NR_SYSCALL_BASE + 246) },
{ "mincore", (__NR_SYSCALL_BASE + 26) },
{ "mkdir", (__NR_SYSCALL_BASE + 81) },
diff --git a/src/arch-mips64n32-syscalls.c b/src/arch-mips64n32-syscalls.c
index 47ce97a..da72899 100644
--- a/src/arch-mips64n32-syscalls.c
+++ b/src/arch-mips64n32-syscalls.c
@@ -30,7 +30,7 @@
/* N32 ABI */
#define __NR_SYSCALL_BASE 6000
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def mips64n32_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", (__NR_SYSCALL_BASE + 22) },
@@ -48,6 +48,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
{ "arch_prctl", __PNR_arch_prctl },
{ "bdflush", __PNR_bdflush },
{ "bind", (__NR_SYSCALL_BASE + 48) },
+ { "bpf", (__NR_SYSCALL_BASE + 319) },
{ "break", __PNR_break },
{ "brk", (__NR_SYSCALL_BASE + 12) },
{ "cachectl", (__NR_SYSCALL_BASE + 198) },
@@ -83,6 +84,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
{ "eventfd", (__NR_SYSCALL_BASE + 282) },
{ "eventfd2", (__NR_SYSCALL_BASE + 288) },
{ "execve", (__NR_SYSCALL_BASE + 57) },
+ { "execveat", (__NR_SYSCALL_BASE + 320) },
{ "exit", (__NR_SYSCALL_BASE + 58) },
{ "exit_group", (__NR_SYSCALL_BASE + 205) },
{ "faccessat", (__NR_SYSCALL_BASE + 263) },
@@ -142,7 +144,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
{ "getpmsg", (__NR_SYSCALL_BASE + 174) },
{ "getppid", (__NR_SYSCALL_BASE + 108) },
{ "getpriority", (__NR_SYSCALL_BASE + 137) },
- { "getrandom", __PNR_getrandom },
+ { "getrandom", (__NR_SYSCALL_BASE + 317) },
{ "getresgid", (__NR_SYSCALL_BASE + 118) },
{ "getresgid32", __PNR_getresgid32 },
{ "getresuid", (__NR_SYSCALL_BASE + 116) },
@@ -197,7 +199,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
{ "lstat64", __PNR_lstat64 },
{ "madvise", (__NR_SYSCALL_BASE + 27) },
{ "mbind", (__NR_SYSCALL_BASE + 231) },
- { "memfd_create", __PNR_memfd_create },
+ { "memfd_create", (__NR_SYSCALL_BASE + 318) },
{ "migrate_pages", (__NR_SYSCALL_BASE + 250) },
{ "mincore", (__NR_SYSCALL_BASE + 26) },
{ "mkdir", (__NR_SYSCALL_BASE + 81) },
diff --git a/src/arch-x32-syscalls.c b/src/arch-x32-syscalls.c
index 0c6a1e5..7876aa7 100644
--- a/src/arch-x32-syscalls.c
+++ b/src/arch-x32-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-x32.h"
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def x32_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", __PNR__newselect },
@@ -44,6 +44,7 @@ const struct arch_syscall_def x32_syscall_table[] = { \
{ "arch_prctl", (X32_SYSCALL_BIT + 158) },
{ "bdflush", __PNR_bdflush },
{ "bind", (X32_SYSCALL_BIT + 49) },
+ { "bpf", (X32_SYSCALL_BIT + 321) },
{ "break", __PNR_break },
{ "brk", (X32_SYSCALL_BIT + 12) },
{ "cachectl", __PNR_cachectl },
@@ -79,6 +80,7 @@ const struct arch_syscall_def x32_syscall_table[] = { \
{ "eventfd", (X32_SYSCALL_BIT + 284) },
{ "eventfd2", (X32_SYSCALL_BIT + 290) },
{ "execve", (X32_SYSCALL_BIT + 520) },
+ { "execveat", (X32_SYSCALL_BIT + 545) },
{ "exit", (X32_SYSCALL_BIT + 60) },
{ "exit_group", (X32_SYSCALL_BIT + 231) },
{ "faccessat", (X32_SYSCALL_BIT + 269) },
diff --git a/src/arch-x86-syscalls.c b/src/arch-x86-syscalls.c
index 8005d28..1d36c0b 100644
--- a/src/arch-x86-syscalls.c
+++ b/src/arch-x86-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-x86.h"
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def x86_syscall_table[] = { \
{ "_llseek", 140 },
{ "_newselect", 142 },
@@ -44,6 +44,7 @@ const struct arch_syscall_def x86_syscall_table[] = { \
{ "arch_prctl", __PNR_arch_prctl },
{ "bdflush", 134 },
{ "bind", __PNR_bind },
+ { "bpf", 357 },
{ "break", 17 },
{ "brk", 45 },
{ "cachectl", __PNR_cachectl },
@@ -79,6 +80,7 @@ const struct arch_syscall_def x86_syscall_table[] = { \
{ "eventfd", 323 },
{ "eventfd2", 328 },
{ "execve", 11 },
+ { "execveat", 358 },
{ "exit", 1 },
{ "exit_group", 252 },
{ "faccessat", 307 },
diff --git a/src/arch-x86_64-syscalls.c b/src/arch-x86_64-syscalls.c
index 1f4d67c..69c22ab 100644
--- a/src/arch-x86_64-syscalls.c
+++ b/src/arch-x86_64-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-x86_64.h"
-/* NOTE: based on Linux 3.17-rc1+ */
+/* NOTE: based on Linux 3.19 */
const struct arch_syscall_def x86_64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", __PNR__newselect },
@@ -44,6 +44,7 @@ const struct arch_syscall_def x86_64_syscall_table[] = { \
{ "arch_prctl", 158 },
{ "bdflush", __PNR_bdflush },
{ "bind", 49 },
+ { "bpf", 321 },
{ "break", __PNR_break },
{ "brk", 12 },
{ "cachectl", __PNR_cachectl },
@@ -79,6 +80,7 @@ const struct arch_syscall_def x86_64_syscall_table[] = { \
{ "eventfd", 284 },
{ "eventfd2", 290 },
{ "execve", 59 },
+ { "execveat", 322 },
{ "exit", 60 },
{ "exit_group", 231 },
{ "faccessat", 269 },