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: 13318205 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 BC27DEB64DA for ; Wed, 19 Jul 2023 05:22:35 +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=4fWpSArVrmoU3RpXWqHku+DyH0XFSB5e2a6SpHa14BQ=; b=cws7x0iHdbs5cy yOxCO6b77ub6LbkwPlK+kKDS3lAAPQDrJEBe3VKmalnGnVSdDlc5UosBbVICUaAdkchj1qZSLRIoN 3ca1MFd3zKwxlm6tRoTEPStBjNFHKFtfCbU41+Z8CZ2dxl0I4eiSf0s1A/aJ+nE1Z/yq0d8a/Eh1L AYbuWCPJgM4DyNwuPNLJUH2xPvl+brL0hiqeZCECrt2oDoTJvS4mdyHwxeHSFeW1CA+qBIV02ozeF itUjE5BvXMO7cX0ht9k1SNwBMkHdUUSEXvjAPywiB44b1CM4dmPgOzYbJ4dkpDT5CbTWrvJUj32AU 5gHdNLG7+s3jljFbBNCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qLzdt-005Fh0-1h; Wed, 19 Jul 2023 05:22:29 +0000 Received: from casper.infradead.org ([90.155.50.34]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLzc0-005Dg5-1W for linux-riscv@bombadil.infradead.org; Wed, 19 Jul 2023 05:20:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=b2vbWQJWrzJiVIJW3O/goat2Lr W79x/NEl5oy5IOtr0QwXSqIExrXzWdQWSEOr6idQt6Z1oXToeZr9AIobLbQA3UeVgq9uKuy1ngvcs MNT3KNsyK4Me70XkAm7WdzspLxpjMafnkUYwck2IoapB0eXaK1bIOTkqTdH6SK2IP9FnoYfh5j6gV o5NaG7c5UJRdUKuPXRIlQZ3AnY2kFfbM2745QoorTOrUqgv0cPBu/GRKQSg0CRGtgZ5IigeIRLda/ QuotnNkRNXhyqYiBesb8Qq2ZvrhTdi5r2l9Fh1kN4BYJa3uqOZQT187QSXl2A3C3wqRroiCJyLpqJ S1AeBKZg==; Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1qLuS3-005Qf5-Ot for linux-riscv@lists.infradead.org; Tue, 18 Jul 2023 23:49:58 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1b89e3715acso32241995ad.3 for ; Tue, 18 Jul 2023 16:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689724133; x=1692316133; 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=oKgQFwiCrPvHzuuXJTxGw9fTJQCZKL9TyIsnHUo20k7J6vJr/dP2UuT8GyfaXNhKWl lfnwI4SNZlla+krW1fx/4HTGrmx9tbRfRVWIu3HGnyMHAJnHjaH8b3Nn7OD9lub8Upfz ScGl6hIrQNtyqOKMdvwG71E9U1LJYrTTZQq71Kwv4L3GIqczSYB1Q2ibrVYwZRMv7ks2 QNhyu3W0Ns8Grpmlyc83iZpzHpUsL+aloKwTrirYI0WDq4iN8t2n8ha5cP4AK06m8uQ9 dXuqm5q+qG2yKgB+nUEYuog82s4uX9rRPSCnrZx4hsx8m3v5+ZWIujkgaic/poWXwLCP o9Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689724133; x=1692316133; 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=h2A7kV9Za6bOH1b6eDC5RRTEFa3KnbX1eD3pRJ8JBEmGn5r685tkNBLcUCaaxQ2RB3 44cU+Rf4x+Am6OoVZE/r/BgoGqL1dIAZJRn4TKyB3XZ+obCQP/coIbC/1i7dbeLEdFJd RONXZWvyTKqjC2r42fcJfWX8gUjE97Qaq+NUxTt9XWM3CHKtM2ep/PGwCavj5b4cSHYN b4rLLpEj/KeXuKzkCn/3lEBKgKV0F3G/NZ2Dw26Rln+iZgGMfmiY8RDYvVXyZPxYTRWt /N7GjyQOGK7Zf8uh8EUyvnlW+xFP7+EuynDcRxTwzSLyWUeV2ZH1SKwDcAA5ZHfCwlRY OtDw== X-Gm-Message-State: ABy/qLYvaClpQXu+HLACJBDZ/Fw35BtU8/YUVISmQLWmTcL0z4UIPj+o bvSokrw2HnsdGh1fAgC2TAcpJ7WTDWU= 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_004955_816091_0B0C4AA4 X-CRM114-Status: UNSURE ( 6.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=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 /**