Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: Enable seccomp architecture tracking

To enable seccomp constant action bitmaps, we need to have a static
mapping to the audit architecture and system call table size. Add these
for arm64.

Signed-off-by: Kees Cook <keescook@chromium.org>

+9
+9
arch/arm64/include/asm/seccomp.h
··· 19 19 20 20 #include <asm-generic/seccomp.h> 21 21 22 + #define SECCOMP_ARCH_NATIVE AUDIT_ARCH_AARCH64 23 + #define SECCOMP_ARCH_NATIVE_NR NR_syscalls 24 + #define SECCOMP_ARCH_NATIVE_NAME "aarch64" 25 + #ifdef CONFIG_COMPAT 26 + # define SECCOMP_ARCH_COMPAT AUDIT_ARCH_ARM 27 + # define SECCOMP_ARCH_COMPAT_NR __NR_compat_syscalls 28 + # define SECCOMP_ARCH_COMPAT_NAME "arm" 29 + #endif 30 + 22 31 #endif /* _ASM_SECCOMP_H */