From bd42d36c9b9f4e892a1d30c192dcbd11a5b7f1dd Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Fri, 8 Feb 2019 10:14:09 -0700 Subject: arch: update the syscalls for Linux v5.0-rc5 Key changes include: * Added __NR_statx, __NR_io_pgetevents, and __NR_rseq syscalls to seccomp.h.in * mips architecture now generates some of its syscall header files. Added logic to arch-syscall-validate to create these headers * ppc architecture now uses a syscall.tbl * s390 now uses a syscall.tbl This addresses GitHub issue #136 Signed-off-by: Tom Hromatka Signed-off-by: Paul Moore --- include/seccomp.h.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') diff --git a/include/seccomp.h.in b/include/seccomp.h.in index 3a02580..20ce45e 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -1690,6 +1690,21 @@ int seccomp_export_bpf(const scmp_filter_ctx ctx, int fd); #define __NR_subpage_prot __PNR_subpage_prot #endif /* __NR_subpage_prot */ +#define __PNR_statx -10208 +#ifndef __NR_statx +#define __NR_statx __PNR_statx +#endif /* __NR_statx */ + +#define __PNR_io_pgetevents -10209 +#ifndef __NR_io_pgetevents +#define __NR_io_pgetevents __PNR_io_pgetevents +#endif /* __NR_io_pgetevents */ + +#define __PNR_rseq -10210 +#ifndef __NR_rseq +#define __NR_rseq __PNR_rseq +#endif /* __NR_rseq */ + #ifdef __cplusplus } #endif -- cgit v1.2.1