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

arm: 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 arm.

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

+11 -1
-1
arch/arm/include/asm/Kbuild
··· 4 4 generic-y += flat.h 5 5 generic-y += local64.h 6 6 generic-y += parport.h 7 - generic-y += seccomp.h 8 7 9 8 generated-y += mach-types.h 10 9 generated-y += unistd-nr.h
+11
arch/arm/include/asm/seccomp.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + #ifndef _ASM_SECCOMP_H 3 + #define _ASM_SECCOMP_H 4 + 5 + #include <asm-generic/seccomp.h> 6 + 7 + #define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARM 8 + #define SECCOMP_ARCH_NATIVE_NR NR_syscalls 9 + #define SECCOMP_ARCH_NATIVE_NAME "arm" 10 + 11 + #endif /* _ASM_SECCOMP_H */