| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm64/include/asm/seccomp.h |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2014 Linaro Limited |
|---|
| 5 | 6 | * Author: AKASHI Takahiro <takahiro.akashi@linaro.org> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | #ifndef _ASM_SECCOMP_H |
|---|
| 12 | 9 | #define _ASM_SECCOMP_H |
|---|
| .. | .. |
|---|
| 22 | 19 | |
|---|
| 23 | 20 | #include <asm-generic/seccomp.h> |
|---|
| 24 | 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 | + |
|---|
| 25 | 31 | #endif /* _ASM_SECCOMP_H */ |
|---|