Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp371857pxb; Wed, 11 Nov 2020 06:00:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLx1tSziPxgA8Dtq+Bv3nTM7VlhOiINk4Z7ielBek4hlQjDthxleoIP9qd0VsZLJ5gvnzD X-Received: by 2002:aa7:c34c:: with SMTP id j12mr5273712edr.17.1605103217536; Wed, 11 Nov 2020 06:00:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605103217; cv=none; d=google.com; s=arc-20160816; b=U05gN4A/lK8jeOVHVazyHdK4v0u520ok+U4ErePZk7X0eLPufQlNFumxMKzjKA5vV5 +1YXhJOhctYqBJEfGpQObWclg2PPzh2u+R9nJojjawa5mIUMZeYfsTF6Jz8AYkvUds+i wI+Mog5Mk5brdNE7EuAOkSRzGpYA20YzOPb0BoDF+o03QDAgOJ8skN2aVtd1OWBzxe8o IOt7Cb26KpquPZqqSQyhrSsUnn5cgcCyOquF4SZQo/YmLiAq962JrRjkJBf4/IOjwVn+ c5gq7p0PwVWdJCsPnB5aVddmsIqVl8DNzCiC2zKT/OzRg97qyE+i9HYqjUeXGvQuNVoj feMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KyUFBIsp7WG/ZlJY7JJxE8NR9eUIpLAxO9Zr6R0PBAI=; b=wqxUJXLGcVLwYIS0yx6XPJtO/tEVqugBbhXZY3XDoCaZmPeRCihgHaPmEg2kdkUhOV nT77CUiafyj1JHi3TO1V7myClUPo4p7kLLrdW2HYXunpbUMi8O6uJOqsTdIsKZEHZnLB ludW1GCEejRStArTkCn5HKGkuc+O6g1ai2hrbTKzKOdlIvs7sKfwFjueQqnwbmKabKuC 9ujhGC/3g//axrxISqVMQR1uPWRSV9PAjNp9SQVDp5BjaYvtB3Qx5XmsUyezLMUIKk3Z mOzQPN27gp/IFWiKIVroJOsjCjrBT6q0UGFFyjzUtCoM+QBIVhD3RFSi0CrqCqhv8CiQ CMJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="F8D/Y+HZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si1541953edv.293.2020.11.11.05.59.53; Wed, 11 Nov 2020 06:00:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="F8D/Y+HZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726906AbgKKNfP (ORCPT + 99 others); Wed, 11 Nov 2020 08:35:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbgKKNeo (ORCPT ); Wed, 11 Nov 2020 08:34:44 -0500 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3083EC0613D1; Wed, 11 Nov 2020 05:34:44 -0800 (PST) Received: by mail-qk1-x741.google.com with SMTP id r7so1616620qkf.3; Wed, 11 Nov 2020 05:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KyUFBIsp7WG/ZlJY7JJxE8NR9eUIpLAxO9Zr6R0PBAI=; b=F8D/Y+HZfrpZoxY1WSpU1XD08FGxbbmSRvBeCuS4pVYlmDmDfHK+86TEUz2GSieEB6 /G826gCZaufPpqw9yqU3gNUSRCTgM9O12K4UhmNyeNdIkVTjqwPtJI9Lf+tvkb9Fg8+c qRpmL5clJ5CA1S+ea2Ab7oCBQhLxWEhivtggHkttRUxU6H+6bwKCbKQw40vyQeowP2ps XMXoUoPJxCmgod7Htt5aWIQRnBxAeBFeM00worN++PmF2dIyJGX4tB4Z/JpSdxEQSkmp 0SlWBQ6C7R2fx7uyThUkfX85xTr/0pRg1d8IYFbC/KQ5PAYWXyryWS92ixdQ2PxoggBD zMoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KyUFBIsp7WG/ZlJY7JJxE8NR9eUIpLAxO9Zr6R0PBAI=; b=sGJIOL0371+AIlMFiGJSlRBsJaxMZzXamk7ozzuv8jsxtkqNGrBlwyCGG3F9s/94Eh lv8f7iaXWAKZH+Tw9bV+wiMjJCDJX3yrcDjBKqh4fW/4RDB3+80lMWUG9me9uYC3RSl0 j1bj9YxeP0rmR9G0mfLGhracstUmX1MQ9oyj/ueObmjBql4jyADAGxvznXQGRWpvh9jr j1b3AR+n03x+7/PZs5uVj71uxu1JqlunVuK5B45Zf8qVCDiMMDm5ii7TKSnB0MpvgS+h bXAmZSILDd7Q+yohWab/XzqML4xuaHf2dCyogr0827deTScKKNwJyjEFtgMRnmzx4RqQ 55eg== X-Gm-Message-State: AOAM5323EsZRTUMiOXNF5yncWGpgOOdkDjHQ8/yeXOHz9Iz+pf84hF1f qjUOXAEoEn0K5/JwiHe51DY= X-Received: by 2002:a37:4145:: with SMTP id o66mr19607495qka.426.1605101683404; Wed, 11 Nov 2020 05:34:43 -0800 (PST) Received: from localhost.localdomain (host-173-230-99-154.tnkngak.clients.pavlovmedia.com. [173.230.99.154]) by smtp.gmail.com with ESMTPSA id r190sm1997814qkf.101.2020.11.11.05.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 05:34:42 -0800 (PST) From: YiFei Zhu To: containers@lists.linux-foundation.org Cc: YiFei Zhu , linux-csky@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org, Aleksa Sarai , Andrea Arcangeli , Andy Lutomirski , David Laight , Dimitrios Skarlatos , Giuseppe Scrivano , Hubertus Franke , Jack Chen , Jann Horn , Josep Torrellas , Kees Cook , Tianyin Xu , Tobin Feldman-Fitzthum , Tycho Andersen , Valentin Rothberg , Will Drewry Subject: [PATCH seccomp v2 7/8] xtensa: Enable seccomp architecture tracking Date: Wed, 11 Nov 2020 07:33:53 -0600 Message-Id: <79669648ba167d668ea6ffb4884250abcd5ed254.1605101222.git.yifeifz2@illinois.edu> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YiFei Zhu 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 xtensa. Signed-off-by: YiFei Zhu --- arch/xtensa/include/asm/Kbuild | 1 - arch/xtensa/include/asm/seccomp.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 arch/xtensa/include/asm/seccomp.h diff --git a/arch/xtensa/include/asm/Kbuild b/arch/xtensa/include/asm/Kbuild index c59c42a1221a..9718e9593564 100644 --- a/arch/xtensa/include/asm/Kbuild +++ b/arch/xtensa/include/asm/Kbuild @@ -7,5 +7,4 @@ generic-y += mcs_spinlock.h generic-y += param.h generic-y += qrwlock.h generic-y += qspinlock.h -generic-y += seccomp.h generic-y += user.h diff --git a/arch/xtensa/include/asm/seccomp.h b/arch/xtensa/include/asm/seccomp.h new file mode 100644 index 000000000000..f1cb6b0a9e1f --- /dev/null +++ b/arch/xtensa/include/asm/seccomp.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _ASM_SECCOMP_H +#define _ASM_SECCOMP_H + +#include + +#define SECCOMP_ARCH_NATIVE AUDIT_ARCH_XTENSA +#define SECCOMP_ARCH_NATIVE_NR NR_syscalls +#define SECCOMP_ARCH_NATIVE_NAME "xtensa" + +#endif /* _ASM_SECCOMP_H */ -- 2.29.2