From patchwork Tue Jul 18 23:44:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13318390 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E9E4C001B0 for ; Wed, 19 Jul 2023 06:52:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID :References:Mime-Version:In-Reply-To:Date:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WpzXKnLxKJbOm63Ax6u/prLRVwn/tUitYs2EqIejYd8=; b=U1dmNrgHOPC/p4 vbMRdjYwHuB8NgRxPRFQveyGKzLi71F4fQ1TUNEP7GzLVFyCro6XGwwbNX5DVSDZon94jGiSMdmLn xhi8Q8wB3bBUCT7CGl/YUJj0Oj9keHoCqdAi9T6uSjrSD5rE6U9luX91RzvgkQzVp0qtgKlOTI5Vi USWNxpTE2jEMYQDgiFwq9Li1JnsqCc6MDPHaPK1yCbPUi/1mhWk9RmpfWosm414h6chLYjEnpUMul I+d/BA5DbwnoB5DqhaLOwEf00AMEcymw8VE28ZUq76E9kWKalZieT4H0To+RmkohpnqoNOdlkUNtZ TAmSUGWZUS8Cv32TdcyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM12g-005wNz-06; Wed, 19 Jul 2023 06:52:10 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM12d-005wLM-05 for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 06:52:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Cc:To:From:Subject: Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To:Sender: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SDxWIrfosG9XJ1i6+ao4lNZmMm/71hk0CPfpAh3rles=; b=Hswj3QLz5mhtuST0AMrJVDOxNt x1NDFzvLEc4pAPnHISuj8QQI38GILGJg0H6jufuOGoNc2zdnUFIPJWTd7lBnc7cp8g+ODy1wEBOXS IIS2EbmJ+Gs4ZHXnOmApDZKp1/5C3Spz3xCjMa0aQ5Jiv1rD8QhHxhhuaypznqHy+eaFvXTuw/MPA e2JKc+gwVIngdsz71evDwA+59mnjn0szfMfEQa7d9ymUQj5ODi4/ZE8ExCNUCy1Pzmq0qPvmF/mER i03U6wTiWADEFAI2s7byBZnDg8qVLfmYmyPv9/OQeomOURWObcQZ+0BHVIiilL6Om9IzjsNacS/3I 71FsLGJw==; Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLuaa-00CFsG-0Z for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 23:58:56 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1b9de3e7fb1so32356705ad.1 for ; Tue, 18 Jul 2023 16:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689724660; x=1692316660; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=SDxWIrfosG9XJ1i6+ao4lNZmMm/71hk0CPfpAh3rles=; b=TjIdHDQUI1lASvcOS3BrwrBqYjMmhHN7Sjoycbw+xyZ122flk2EoRwiK246C/Ao2Eb np0g1gmhxETvL3tKFqE8mobYD/DJuxHGt8opfPiA2bd0LYNicC/We5rHNNkaCrJSMruL PdF/tyUWwT6MlOAcG5qW2rEQ1vOQrqLp1aZ/HlhmuvPA0C70jjdOQxAO6k8dRBeFseBc YidLRNO2XG+jWDVJXxCrN7FfgjIN9PE4Md9OT7PuB9J37nfH0v21/zaYsu6vHFW+y0gl GI+vJZo9mW+uCqArc2pPFlh0DCyELFgANwvBN1buPWKKJXvYbmZ2lISoKxkCpM/uO0s9 e7fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689724660; x=1692316660; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SDxWIrfosG9XJ1i6+ao4lNZmMm/71hk0CPfpAh3rles=; b=lqKq6ZX7ZxjoRCdJZ+auw6ncWiG9UyKB33kOD4F/93zY7cuyhH4YaCK+u0M5C9cg3t 2FxsV9DhQ+GnjAB2XYmQDHRJ8Ne98OV6Nhs0gSRi1av5Abvq5e+vLpIcdolFvbq/z7GA BwGtCIu2X5U+2PV+6Rp920mxUW/ulVADYMsFiHa5W/f8mTcLwlR3xI0qu9kRKgp839dL CSTRh51a6nPxMus6r1Swx2/yiL3cpj3OdJ1jIFvZVtlrXiMjTyEJcY5pko9Z5J/qgvrX e58t1tnZaZ7gRWNVbZgC+KbqgxoWtKYvC4Ibt6Vc9YMHekMSX2qMXy/vIiqbYeCBSYYK 4N+g== X-Gm-Message-State: ABy/qLaKv+R6kyJSpMsvcERGq5KsBQ/t8DmU5sNdm6gqR1LtmnpypxMY ZbF2SqVU+HcTMWe2YsUbksqDS/Oq6x8= X-Google-Smtp-Source: APBJJlFRkrJKR6wk6kjyyawD9jUVadK517ZfNP5yf1yjj9/O0JQ+6He3HEMs3LUDgHlJok/ugi+AWDRSDQU= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:c412:b0:1ba:1704:89d1 with SMTP id k18-20020a170902c41200b001ba170489d1mr21516plk.10.1689724133087; Tue, 18 Jul 2023 16:48:53 -0700 (PDT) Date: Tue, 18 Jul 2023 16:44:54 -0700 In-Reply-To: <20230718234512.1690985-1-seanjc@google.com> Mime-Version: 1.0 References: <20230718234512.1690985-1-seanjc@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230718234512.1690985-12-seanjc@google.com> Subject: [RFC PATCH v11 11/29] security: Export security_inode_init_security_anon() for use by KVM From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sean Christopherson , "Matthew Wilcox (Oracle)" , Andrew Morton , Paul Moore , James Morris , "Serge E. Hallyn" Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Peng , Fuad Tabba , Jarkko Sakkinen , Yu Zhang , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , Vlastimil Babka , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230719_005845_917244_69C3DA0C X-CRM114-Status: UNSURE ( 8.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sean Christopherson Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Signed-off-by: Sean Christopherson Acked-by: Paul Moore --- security/security.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/security.c b/security/security.c index b720424ca37d..7fc78f0f3622 100644 --- a/security/security.c +++ b/security/security.c @@ -1654,6 +1654,7 @@ int security_inode_init_security_anon(struct inode *inode, return call_int_hook(inode_init_security_anon, 0, inode, name, context_inode); } +EXPORT_SYMBOL_GPL(security_inode_init_security_anon); #ifdef CONFIG_SECURITY_PATH /**