提交 3921290f 编写于 作者: G Gu Zitao 提交者: Zheng Zengkai

sw64: add AUDIT_ARCH_SW64 definition

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4SPZD
CVE: NA

-------------------------------

Add AUDIT_ARCH_SW64 definition to support syscall_get_arch(), which is
required to be implemented on all architectures in order to extend the
generic ptrace API with PTRACE_GET_SYSCALL_INFO request.

Signed-off-by: Gu Zitao <guzitao@wxiat.com> #openEuler_contributor
Signed-off-by: NLaibin Qiu <qiulaibin@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 3ba5d2b3
......@@ -434,6 +434,7 @@ enum {
#define AUDIT_ARCH_UNICORE (EM_UNICORE|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_X86_64 (EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_XTENSA (EM_XTENSA)
#define AUDIT_ARCH_SW64 (EM_SW64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
#define AUDIT_PERM_EXEC 1
#define AUDIT_PERM_WRITE 2
......
......@@ -58,6 +58,7 @@
* up with a final number.
*/
#define EM_ALPHA 0x9026
#define EM_SW64 0x9916
/* Bogus old m32r magic number, used by old tools. */
#define EM_CYGNUS_M32R 0x9041
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册