]> git.proxmox.com Git - mirror_libseccomp.git/commitdiff
arch: add the statx syscall
authorTobias Klauser <tklauser@distanz.ch>
Fri, 20 Oct 2017 07:39:40 +0000 (09:39 +0200)
committerPaul Moore <paul@paul-moore.com>
Wed, 10 Jan 2018 17:06:55 +0000 (12:06 -0500)
Fixes #88

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
[PM: fixed the incorrect x32 definition]
Signed-off-by: Paul Moore <paul@paul-moore.com>
13 files changed:
src/arch-aarch64-syscalls.c
src/arch-arm-syscalls.c
src/arch-mips-syscalls.c
src/arch-mips64-syscalls.c
src/arch-mips64n32-syscalls.c
src/arch-parisc-syscalls.c
src/arch-ppc-syscalls.c
src/arch-ppc64-syscalls.c
src/arch-s390-syscalls.c
src/arch-s390x-syscalls.c
src/arch-x32-syscalls.c
src/arch-x86-syscalls.c
src/arch-x86_64-syscalls.c

index d9071828482c0d8424dda9910a051b0ef59029c9..157aedc5060a7cc0187f8197494965b72fc50b49 100644 (file)
@@ -26,7 +26,7 @@
 #include "arch.h"
 #include "arch-aarch64.h"
 
-/* NOTE: based on Linux 4.10-rc6+ */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def aarch64_syscall_table[] = { \
        { "_llseek", __PNR__llseek },
        { "_newselect", __PNR__newselect },
@@ -392,6 +392,7 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \
        { "stat64", __PNR_stat64 },
        { "statfs", 43 },
        { "statfs64", __PNR_statfs64 },
+       { "statx", 291 },
        { "stime", __PNR_stime },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index 6f40caacf5dc8d353f0480249005e63d74b672de..43e2cc583d8790f53c61a385c30417f6f557d925 100644 (file)
@@ -37,7 +37,7 @@
 #define __SCMP_NR_BASE                 __SCMP_NR_OABI_SYSCALL_BASE
 #endif
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def arm_syscall_table[] = { \
        /* NOTE: arm_sync_file_range() and sync_file_range2() share values */
        { "_llseek", (__SCMP_NR_BASE + 140) },
@@ -404,6 +404,7 @@ const struct arch_syscall_def arm_syscall_table[] = { \
        { "stat64", (__SCMP_NR_BASE + 195) },
        { "statfs", (__SCMP_NR_BASE + 99) },
        { "statfs64", (__SCMP_NR_BASE + 266) },
+       { "statx", (__SCMP_NR_BASE + 397) },
        { "stime", __PNR_stime },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index e53f5652bfcfdea7de1ddfc7a423fd21fa084349..a5264c89868df7fcb1cbba197fc5d95d2149d18a 100644 (file)
@@ -30,7 +30,7 @@
 /* O32 ABI */
 #define __SCMP_NR_BASE         4000
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def mips_syscall_table[] = { \
        { "_llseek", (__SCMP_NR_BASE + 140) },
        { "_newselect", (__SCMP_NR_BASE + 142) },
@@ -396,6 +396,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \
        { "stat64", (__SCMP_NR_BASE + 213) },
        { "statfs", (__SCMP_NR_BASE + 99) },
        { "statfs64", (__SCMP_NR_BASE + 255) },
+       { "statx", (__SCMP_NR_BASE + 366) },
        { "stime", (__SCMP_NR_BASE + 25) },
        { "stty", (__SCMP_NR_BASE + 31) },
        { "subpage_prot", __PNR_subpage_prot },
index 248acaf3cc583031ca7269a0e46ad1a5c4f89394..bc16b1d682154b08a799a80f563c49c17074ab93 100644 (file)
@@ -30,7 +30,7 @@
 /* 64 ABI */
 #define __SCMP_NR_BASE 5000
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def mips64_syscall_table[] = { \
        { "_llseek", __PNR__llseek },
        { "_newselect", (__SCMP_NR_BASE + 22) },
@@ -396,6 +396,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
        { "stat64", __PNR_stat64 },
        { "statfs", (__SCMP_NR_BASE + 134) },
        { "statfs64", __PNR_statfs64 },
+       { "statx", (__SCMP_NR_BASE + 326) },
        { "stime", __PNR_stime },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index 1525f8bad30fbee22380264734071d8b07241a2a..fa89bc2569c27134a2436d120d041afa369743d1 100644 (file)
@@ -30,7 +30,7 @@
 /* N32 ABI */
 #define __SCMP_NR_BASE 6000
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def mips64n32_syscall_table[] = { \
        { "_llseek", __PNR__llseek },
        { "_newselect", (__SCMP_NR_BASE + 22) },
@@ -396,6 +396,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
        { "stat64", __PNR_stat64 },
        { "statfs", (__SCMP_NR_BASE + 134) },
        { "statfs64", (__SCMP_NR_BASE + 217) },
+       { "statx", (__SCMP_NR_BASE + 330) },
        { "stime", __PNR_stime },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index 153c11296f40998e9b09352181f6d803c4c83792..7e9d9ab84b1656027bde79d719a5e8588c2f47a5 100644 (file)
@@ -10,7 +10,7 @@
 #include "arch.h"
 #include "arch-parisc.h"
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def parisc_syscall_table[] = { \
        { "_llseek",    140 },
        { "_newselect", 142 },
@@ -376,6 +376,7 @@ const struct arch_syscall_def parisc_syscall_table[] = { \
        { "stat64",     101 },
        { "statfs",     99 },
        { "statfs64",   298 },
+       { "statx",      349 },
        { "stime",      25 },
        { "stty",       __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index c117da98eb540476d79d5b88b1591d09507a3161..fe0cdfbc14cee776b34c3d39a9af070d72bc6eee 100644 (file)
@@ -27,7 +27,7 @@
 #include "arch.h"
 #include "arch-ppc.h"
 
-/* NOTE: based on Linux 4.10-rc6+ */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def ppc_syscall_table[] = { \
        { "_llseek", 140 },
        { "_newselect", 142 },
@@ -393,6 +393,7 @@ const struct arch_syscall_def ppc_syscall_table[] = { \
        { "stat64", 195 },
        { "statfs", 99 },
        { "statfs64", 252 },
+       { "statx", 383},
        { "stime", 25 },
        { "stty", 31 },
        { "subpage_prot", 310 },
index bbd5876b1d3972b9a9dfc9d6bbd70138abeded0a..dc09610fa5ec78d22ddb84dc5a15d994543ac306 100644 (file)
@@ -27,7 +27,7 @@
 #include "arch.h"
 #include "arch-ppc64.h"
 
-/* NOTE: based on Linux 4.10-rc6+ */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def ppc64_syscall_table[] = { \
        { "_llseek", 140 },
        { "_newselect", 142 },
@@ -393,6 +393,7 @@ const struct arch_syscall_def ppc64_syscall_table[] = { \
        { "stat64", __PNR_stat64 },
        { "statfs", 99 },
        { "statfs64", 252 },
+       { "statx", 383},
        { "stime", 25 },
        { "stty", 31 },
        { "subpage_prot", 310 },
index 959b42f5b3f7008c6e7807d344e8173c0ab4c96b..8a6cecc49ecd79337686255bd2519edde2b1b201 100644 (file)
@@ -10,7 +10,7 @@
 #include "arch.h"
 #include "arch-s390.h"
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def s390_syscall_table[] = { \
        { "_llseek", 140 },
        { "_newselect", 142 },
@@ -376,6 +376,7 @@ const struct arch_syscall_def s390_syscall_table[] = { \
        { "stat64", 195 },
        { "statfs", 99 },
        { "statfs64", 265 },
+       { "statx", 379 },
        { "stime", 25 },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index f6a2759f1cfca9be88e0a3bb1f7d10b55dc89f06..728dfc4115cc22038343b5189ac877616926ba92 100644 (file)
@@ -10,7 +10,7 @@
 #include "arch.h"
 #include "arch-s390x.h"
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def s390x_syscall_table[] = { \
        { "_llseek", __PNR__llseek },
        { "_newselect", __PNR__newselect },
@@ -376,6 +376,7 @@ const struct arch_syscall_def s390x_syscall_table[] = { \
        { "stat64", __PNR_stat64 },
        { "statfs", 99 },
        { "statfs64", 265 },
+       { "statx", 379 },
        { "stime", __PNR_stime },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index 64e180a76c43ae91f399f7a71ff918e7643ab2d9..bb3e077c58f8faaea7f77f24465dd42d31a19f31 100644 (file)
@@ -26,7 +26,7 @@
 #include "arch.h"
 #include "arch-x32.h"
 
-/* NOTE: based on Linux 4.5-rc4 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def x32_syscall_table[] = { \
        { "_llseek", __PNR__llseek },
        { "_newselect", __PNR__newselect },
@@ -392,6 +392,7 @@ const struct arch_syscall_def x32_syscall_table[] = { \
        { "stat64", __PNR_stat64 },
        { "statfs", (X32_SYSCALL_BIT + 137) },
        { "statfs64", __PNR_statfs64 },
+       { "statx", (X32_SYSCALL_BIT + 332) },
        { "stime", __PNR_stime },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },
index 54430951f5e7d9734a626f1eabb9dfa31cb30ac5..81a52a323b662b28ac672cfd416551adffcbd318 100644 (file)
@@ -26,7 +26,7 @@
 #include "arch.h"
 #include "arch-x86.h"
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def x86_syscall_table[] = { \
        { "_llseek", 140 },
        { "_newselect", 142 },
@@ -392,6 +392,7 @@ const struct arch_syscall_def x86_syscall_table[] = { \
        { "stat64", 195 },
        { "statfs", 99 },
        { "statfs64", 268 },
+       { "statx", 383 },
        { "stime", 25 },
        { "stty", 31 },
        { "subpage_prot", __PNR_subpage_prot },
index 6c389b8ad7c4e563ce779d399191fc2cf6c0745e..1da253045408c203a4d06ef566ed370a2253e8b1 100644 (file)
@@ -26,7 +26,7 @@
 #include "arch.h"
 #include "arch-x86_64.h"
 
-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
 const struct arch_syscall_def x86_64_syscall_table[] = { \
        { "_llseek", __PNR__llseek },
        { "_newselect", __PNR__newselect },
@@ -392,6 +392,7 @@ const struct arch_syscall_def x86_64_syscall_table[] = { \
        { "stat64", __PNR_stat64 },
        { "statfs", 137 },
        { "statfs64", __PNR_statfs64 },
+       { "statx", 332 },
        { "stime", __PNR_stime },
        { "stty", __PNR_stty },
        { "subpage_prot", __PNR_subpage_prot },