forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/arm64/include/asm/seccomp.h
....@@ -1,12 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * arch/arm64/include/asm/seccomp.h
34 *
45 * Copyright (C) 2014 Linaro Limited
56 * 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.
107 */
118 #ifndef _ASM_SECCOMP_H
129 #define _ASM_SECCOMP_H
....@@ -22,4 +19,13 @@
2219
2320 #include <asm-generic/seccomp.h>
2421
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
+
2531 #endif /* _ASM_SECCOMP_H */