diff --git a/include/seccomp-syscalls.h b/include/seccomp-syscalls.h index 3c958df..84b44d0 100644 --- a/include/seccomp-syscalls.h +++ b/include/seccomp-syscalls.h @@ -761,6 +761,7 @@ #endif #define __SNR_getdents64 __NR_getdents64 +#define __SNR_getdents64_x32 __NR_getdents64_x32 #ifdef __NR_getegid #define __SNR_getegid __NR_getegid diff --git a/src/arch-aarch64-syscalls.c b/src/arch-aarch64-syscalls.c index 02f25eb..6fcdc35 100644 --- a/src/arch-aarch64-syscalls.c +++ b/src/arch-aarch64-syscalls.c @@ -138,6 +138,7 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \ { "getcwd", 17 }, { "getdents", __PNR_getdents }, { "getdents64", 61 }, + { "getdents64_x32", 436 }, { "getegid", 177 }, { "getegid32", __PNR_getegid32 }, { "geteuid", 175 }, diff --git a/src/arch-arm-syscalls.c b/src/arch-arm-syscalls.c index 923aae9..6c41bff 100644 --- a/src/arch-arm-syscalls.c +++ b/src/arch-arm-syscalls.c @@ -150,6 +150,7 @@ const struct arch_syscall_def arm_syscall_table[] = { \ { "getcwd", (__SCMP_NR_BASE + 183) }, { "getdents", (__SCMP_NR_BASE + 141) }, { "getdents64", (__SCMP_NR_BASE + 217) }, + { "getdents64_x32", (__SCMP_NR_BASE + 436) }, { "getegid", (__SCMP_NR_BASE + 50) }, { "getegid32", (__SCMP_NR_BASE + 202) }, { "geteuid", (__SCMP_NR_BASE + 49) }, diff --git a/src/arch-mips-syscalls.c b/src/arch-mips-syscalls.c index c0c5d40..4bd3afd 100644 --- a/src/arch-mips-syscalls.c +++ b/src/arch-mips-syscalls.c @@ -142,6 +142,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \ { "getcwd", (__SCMP_NR_BASE + 203) }, { "getdents", (__SCMP_NR_BASE + 141) }, { "getdents64", (__SCMP_NR_BASE + 219) }, + { "getdents64_x32", (__SCMP_NR_BASE + 436) }, { "getegid", (__SCMP_NR_BASE + 50) }, { "getegid32", __PNR_getegid32 }, { "geteuid", (__SCMP_NR_BASE + 49) }, diff --git a/src/arch-mips64-syscalls.c b/src/arch-mips64-syscalls.c index af23ff4..f1880fc 100644 --- a/src/arch-mips64-syscalls.c +++ b/src/arch-mips64-syscalls.c @@ -142,6 +142,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \ { "getcwd", (__SCMP_NR_BASE + 77) }, { "getdents", (__SCMP_NR_BASE + 76) }, { "getdents64", (__SCMP_NR_BASE + 308) }, + { "getdents64_x32", (__SCMP_NR_BASE + 436) }, { "getegid", (__SCMP_NR_BASE + 106) }, { "getegid32", __PNR_getegid32 }, { "geteuid", (__SCMP_NR_BASE + 105) }, diff --git a/src/arch-mips64n32-syscalls.c b/src/arch-mips64n32-syscalls.c index 2159bcc..e2b9989 100644 --- a/src/arch-mips64n32-syscalls.c +++ b/src/arch-mips64n32-syscalls.c @@ -142,6 +142,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \ { "getcwd", (__SCMP_NR_BASE + 77) }, { "getdents", (__SCMP_NR_BASE + 76) }, { "getdents64", (__SCMP_NR_BASE + 299) }, + { "getdents64_x32", (__SCMP_NR_BASE + 436) }, { "getegid", (__SCMP_NR_BASE + 106) }, { "getegid32", __PNR_getegid32 }, { "geteuid", (__SCMP_NR_BASE + 105) }, diff --git a/src/arch-parisc-syscalls.c b/src/arch-parisc-syscalls.c index c516c16..d11a18b 100644 --- a/src/arch-parisc-syscalls.c +++ b/src/arch-parisc-syscalls.c @@ -122,6 +122,7 @@ const struct arch_syscall_def parisc_syscall_table[] = { \ { "getcwd", 110 }, { "getdents", 141 }, { "getdents64", 201 }, + { "getdents64_x32", 436 }, { "getegid", 50 }, { "getegid32", __PNR_getegid32 }, { "geteuid", 49 }, diff --git a/src/arch-ppc-syscalls.c b/src/arch-ppc-syscalls.c index fbfa1df..1ad0aca 100644 --- a/src/arch-ppc-syscalls.c +++ b/src/arch-ppc-syscalls.c @@ -139,6 +139,7 @@ const struct arch_syscall_def ppc_syscall_table[] = { \ { "getcwd", 182 }, { "getdents", 141 }, { "getdents64", 202 }, + { "getdents64_x32", 436 }, { "getegid", 50 }, { "getegid32", __PNR_getegid32 }, { "geteuid", 49 }, diff --git a/src/arch-ppc64-syscalls.c b/src/arch-ppc64-syscalls.c index 41f82af..4ddf644 100644 --- a/src/arch-ppc64-syscalls.c +++ b/src/arch-ppc64-syscalls.c @@ -139,6 +139,7 @@ const struct arch_syscall_def ppc64_syscall_table[] = { \ { "getcwd", 182 }, { "getdents", 141 }, { "getdents64", 202 }, + { "getdents64_x32", 436 }, { "getegid", 50 }, { "getegid32", __PNR_getegid32 }, { "geteuid", 49 }, diff --git a/src/arch-s390-syscalls.c b/src/arch-s390-syscalls.c index 247bb46..92230d8 100644 --- a/src/arch-s390-syscalls.c +++ b/src/arch-s390-syscalls.c @@ -122,6 +122,7 @@ const struct arch_syscall_def s390_syscall_table[] = { \ { "getcwd", 183 }, { "getdents", 141 }, { "getdents64", 220 }, + { "getdents64_x32", 436 }, { "getegid", 50 }, { "getegid32", 202 }, { "geteuid", 49 }, diff --git a/src/arch-s390x-syscalls.c b/src/arch-s390x-syscalls.c index 1ada38e..d83b67b 100644 --- a/src/arch-s390x-syscalls.c +++ b/src/arch-s390x-syscalls.c @@ -122,6 +122,7 @@ const struct arch_syscall_def s390x_syscall_table[] = { \ { "getcwd", 183 }, { "getdents", 141 }, { "getdents64", 220 }, + { "getdents64_x32", 436 }, { "getegid", 202 }, { "getegid32", __PNR_getegid32 }, { "geteuid", 201 }, diff --git a/src/arch-x32-syscalls.c b/src/arch-x32-syscalls.c index e5cfadb..310855a 100644 --- a/src/arch-x32-syscalls.c +++ b/src/arch-x32-syscalls.c @@ -138,6 +138,7 @@ const struct arch_syscall_def x32_syscall_table[] = { \ { "getcwd", (X32_SYSCALL_BIT + 79) }, { "getdents", (X32_SYSCALL_BIT + 78) }, { "getdents64", (X32_SYSCALL_BIT + 217) }, + { "getdents64_x32", (X32_SYSCALL_BIT + 436) }, { "getegid", (X32_SYSCALL_BIT + 108) }, { "getegid32", __PNR_getegid32 }, { "geteuid", (X32_SYSCALL_BIT + 107) }, diff --git a/src/arch-x86-syscalls.c b/src/arch-x86-syscalls.c index ff555e9..202f5e9 100644 --- a/src/arch-x86-syscalls.c +++ b/src/arch-x86-syscalls.c @@ -138,6 +138,7 @@ const struct arch_syscall_def x86_syscall_table[] = { \ { "getcwd", 183 }, { "getdents", 141 }, { "getdents64", 220 }, + { "getdents64_x32", 436 }, { "getegid", 50 }, { "getegid32", 202 }, { "geteuid", 49 }, diff --git a/src/arch-x86_64-syscalls.c b/src/arch-x86_64-syscalls.c index a2fdef8..c67137b 100644 --- a/src/arch-x86_64-syscalls.c +++ b/src/arch-x86_64-syscalls.c @@ -138,6 +138,7 @@ const struct arch_syscall_def x86_64_syscall_table[] = { \ { "getcwd", 79 }, { "getdents", 78 }, { "getdents64", 217 }, + { "getdents64_x32", 436 }, { "getegid", 108 }, { "getegid32", __PNR_getegid32 }, { "geteuid", 107 }, @@ -556,4 +557,3 @@ const struct arch_syscall_def *x86_64_syscall_iterate(unsigned int spot) /* XXX - no safety checks here */ return &x86_64_syscall_table[spot]; } -