Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp14192imu; Mon, 19 Nov 2018 16:50:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/VIsBBQzeUp3QtqlyEmZfnVSbos+K1XTH8sgyaqRHKM2tongm7EYFig0BJeXF9OHNILj4z0 X-Received: by 2002:a17:902:43e4:: with SMTP id j91mr3658219pld.147.1542675058257; Mon, 19 Nov 2018 16:50:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542675058; cv=none; d=google.com; s=arc-20160816; b=HeXQ7idu7iadj8I5W3grImP58tRn7VMucujfrBnDqdoY4eBZQMNNQKRt58GVvX8pTh CtlFrKEzwlYkPHxlW9t5iU+UcyRIuxUb/7vFy1gNlnOJ9zxC57Ongfqe9iOGmj3fIrFU BXsUqyCksCBYjMBHbsDloVNrMx0+I/6Gvypj7ej6jFH4g8V4O8MgaqzTCvmlnDu84YKx xHfCAd7wZc+ucpy0NqWNn8J0Q2bnLWcpHgS72U+g86Lt5dSM1HQubpXjzvknIzKEHr3M f5JK8Mfxf8XwJ0Fi9V+xX7hM+m1VlThDAfP+zt5ZW08pFUX7NL1mYjFGoWptP3E5QQLO uibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=mikKg4OYt5JZQ9W94bjOt4N4piWXaFYHs4dt4X9ae74=; b=ej/R61n6EYv+8BbtK80yvOgHOolm+GYn9Z0SX4GMJJQmU785/ztXk5BnRBxRcuBOGS 8RhHzi4SCmaa0Es1ZiSdKjJzLIlNrxt7x0TIJ2VEdA0I9h7onSm9Uvo6ux6iGGEA0OE0 igGEHpd3y1RW5OUnfGjIXspIvl7E6zDQ94eH0LqZlg+//yyJ1hB59rfK+tiku5DEZd3j QZCDQFyhi53VrOyGtbsJ11GinTU4vufw+/jJaip3Z7ulxrraOUlaK3ki7NtOU0W3Mskz jwXiYUW0IP8su8jf1XbM7lIxnSfrM7zfu4+64WayK41QGrfVLOnwSYVzb12hc83aSWg2 F9Rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6si20112108plr.414.2018.11.19.16.50.44; Mon, 19 Nov 2018 16:50:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732408AbeKTKnE (ORCPT + 99 others); Tue, 20 Nov 2018 05:43:04 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:56076 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728979AbeKTKnE (ORCPT ); Tue, 20 Nov 2018 05:43:04 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 0688872CC6C; Tue, 20 Nov 2018 03:16:48 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id E15C57CD1FF; Tue, 20 Nov 2018 03:16:47 +0300 (MSK) Date: Tue, 20 Nov 2018 03:16:47 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski , Guan Xuetao Cc: Paul Moore , Eric Paris , Elvira Khabirova , linux-audit@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 14/15] unicore32: define syscall_get_arch() Message-ID: <20181120001647.GN11387@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181120001128.GA11300@altlinux.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syscall_get_arch() 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: Dmitry V. Levin --- v2: unchanged since v1 arch/unicore32/include/asm/syscall.h | 12 ++++++++++++ include/uapi/linux/audit.h | 1 + 2 files changed, 13 insertions(+) create mode 100644 arch/unicore32/include/asm/syscall.h diff --git a/arch/unicore32/include/asm/syscall.h b/arch/unicore32/include/asm/syscall.h new file mode 100644 index 000000000000..3a6b885476b4 --- /dev/null +++ b/arch/unicore32/include/asm/syscall.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_UNICORE_SYSCALL_H +#define _ASM_UNICORE_SYSCALL_H + +#include + +static inline int syscall_get_arch(void) +{ + return AUDIT_ARCH_UNICORE; +} + +#endif /* _ASM_UNICORE_SYSCALL_H */ diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index a97a29922de0..b032748cb8ba 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h @@ -423,6 +423,7 @@ enum { #define AUDIT_ARCH_TILEGX (EM_TILEGX|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) #define AUDIT_ARCH_TILEGX32 (EM_TILEGX|__AUDIT_ARCH_LE) #define AUDIT_ARCH_TILEPRO (EM_TILEPRO|__AUDIT_ARCH_LE) +#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_PERM_EXEC 1 -- ldv