06d47b915f
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 riscv.
Signed-off-by: YiFei Zhu <yifeifz2@illinois.edu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/58ef925d00505cbb77478fa6bd2b48ab2d902460.1605101222.git.yifeifz2@illinois.edu
(cherry picked from commit 673a11a7e4)
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Bug: 176068146
Change-Id: Id527ef5da40301bbdca59d92ed24523959f96707
21 lines
504 B
C
21 lines
504 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _ASM_SECCOMP_H
|
|
#define _ASM_SECCOMP_H
|
|
|
|
#include <asm/unistd.h>
|
|
|
|
#include <asm-generic/seccomp.h>
|
|
|
|
#ifdef CONFIG_64BIT
|
|
# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV64
|
|
# define SECCOMP_ARCH_NATIVE_NR NR_syscalls
|
|
# define SECCOMP_ARCH_NATIVE_NAME "riscv64"
|
|
#else /* !CONFIG_64BIT */
|
|
# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV32
|
|
# define SECCOMP_ARCH_NATIVE_NR NR_syscalls
|
|
# define SECCOMP_ARCH_NATIVE_NAME "riscv32"
|
|
#endif
|
|
|
|
#endif /* _ASM_SECCOMP_H */
|