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

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

Signed-off-by: YiFei Zhu <yifeifz2@illinois.edu>
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/9bb86c546eda753adf5270425e7353202dbce87c.1605101222.git.yifeifz2@illinois.edu

authored by

YiFei Zhu and committed by
Kees Cook
6aa7923c 6e9ae6f9

+22 -1
-1
arch/parisc/include/asm/Kbuild
··· 5 5 generic-y += kvm_para.h 6 6 generic-y += local64.h 7 7 generic-y += mcs_spinlock.h 8 - generic-y += seccomp.h 9 8 generic-y += user.h
+22
arch/parisc/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 + #ifdef CONFIG_64BIT 8 + # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC64 9 + # define SECCOMP_ARCH_NATIVE_NR NR_syscalls 10 + # define SECCOMP_ARCH_NATIVE_NAME "parisc64" 11 + # ifdef CONFIG_COMPAT 12 + # define SECCOMP_ARCH_COMPAT AUDIT_ARCH_PARISC 13 + # define SECCOMP_ARCH_COMPAT_NR NR_syscalls 14 + # define SECCOMP_ARCH_COMPAT_NAME "parisc" 15 + # endif 16 + #else /* !CONFIG_64BIT */ 17 + # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC 18 + # define SECCOMP_ARCH_NATIVE_NR NR_syscalls 19 + # define SECCOMP_ARCH_NATIVE_NAME "parisc" 20 + #endif 21 + 22 + #endif /* _ASM_SECCOMP_H */