From patchwork Thu Sep 14 01:55:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13384102 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 1C851EE0213 for ; Thu, 14 Sep 2023 01:58:10 +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=s5qiAHy3lRATeunq/KBO1u9QcKzcve6Tdw4dueoZTcw=; b=H4sZBPjneUE/0b OBGby4p612sSTp/5ruVfpRx3cOlsYEd0HVkKo8jRuohDi7z3DS5yjWIHdVgH9pyYPOy8qrHOp7YoS 6nwmN+zw0OcA2fme8R8Y1FyGvCySh0xS/Uhp6z2lV0HUugTlwETqpGN5Tpj8Oi0Ig00QF+08jexIZ xvoaw1XNpI5gJ5UF+ntblR9Rf5W1CimzMOl+6nNl3FNOuftfh9UXkKp86vAorgosAeabVXjyShAX9 8X/M31IOT7UVV43lY/Ae7xgtVMz5+YCuKEMLllHDBSJMaViQTSbwQIrR7rQIGi5pN9myL1fxSwtZ8 YMtqWraFE/gnneuJdJsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgbc0-0074kn-0J; Thu, 14 Sep 2023 01:57:44 +0000 Received: from mail-pl1-x64a.google.com ([2607:f8b0:4864:20::64a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgbaO-00736v-0P for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 01:56:07 +0000 Received: by mail-pl1-x64a.google.com with SMTP id d9443c01a7336-1c1fe87fc29so4089755ad.0 for ; Wed, 13 Sep 2023 18:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1694656563; x=1695261363; darn=lists.infradead.org; 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=pjDK4myqRW/1aonXWMm2h3oZGIvtROhN9F/LidQar5g=; b=IQrX8IY1QTwqCI/e98lnFS22W33W9sWsqHWxD1Uj2fogp4X5shc8gw3PuYnyNm8uLf k/FuAm+up6BfNihjOlQpXyJV9GLwsVjrhMyvv7ujK3WkH28My/Np7L+DMCRvEGqGP9EG cJ0KI+79efRlW+W+VDTUleyXBjT6MEJ0temgCemSMgEfAHT7GpeQgrBqg5D3wJ6SeDIl V92rwPOGZKd7pPHQEQouEEC+Ip/DPfA0JpKBK97R3vb3CUQZJK5KN5F5UsjsgzD9mftX j86SJp22Tusqpw0cnPY0S1AwNSHA6pC9ifkASGxue18wQnFsVgNfBEZY4z765p9NxDvx 6Oqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694656563; x=1695261363; 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=pjDK4myqRW/1aonXWMm2h3oZGIvtROhN9F/LidQar5g=; b=p8PIBuq23foWoyBm3FaYq8CARsX30FxAXF+erBW0ik2oyPMoN9g6vimDwWR1OiMImM zwFnOEht7yhr5u+dWM6TxbBzUOZrdRMpHhUuxNs1HdBkJ3KwrSa/hhcVhsGT5F9WhzpP sMHk/p73nzN5RsKTS7UvrnC68wqfN/kO7YDtLer5gXdES+r0kQj7YY5jsGgjuR/a1DwB Cs76lHbR3TIB0NxwvLdYgXAnS/4ffDLwZNzla4YvOu46lM21FywqnIgcLR4ya0celatT SIBOX7Cp3pCXcEZdiHtwintbtOTwAC8PFEVLzs1uM/uV9j0lpfwebegFiFWEMMe3tN9t NgHw== X-Gm-Message-State: AOJu0YxvFm3boE+/daR+1qKFl0YY2Teo9+Gulq6hVdJAsVWdDmERiB4w +ROJwM2KKzL/gQPs0hHe0pQnRO7dYAI= X-Google-Smtp-Source: AGHT+IGkqKKLF+YNvEneEdPalVclX+vMSg6CmJX8h6r/u0gfxt18eBEohuQohG5dATROkCqosWZykFZT8R8= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:fa8b:b0:1ae:6895:cb96 with SMTP id lc11-20020a170902fa8b00b001ae6895cb96mr149990plb.5.1694656562630; Wed, 13 Sep 2023 18:56:02 -0700 (PDT) Date: Wed, 13 Sep 2023 18:55:11 -0700 In-Reply-To: <20230914015531.1419405-1-seanjc@google.com> Mime-Version: 1.0 References: <20230914015531.1419405-1-seanjc@google.com> X-Mailer: git-send-email 2.42.0.283.g2d96d420d3-goog Message-ID: <20230914015531.1419405-14-seanjc@google.com> Subject: [RFC PATCH v12 13/33] 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 , Anish Moorthy , Yu Zhang , Isaku Yamahata , Xu Yilun , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , 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-20230913_185604_212289_14ACA956 X-CRM114-Status: UNSURE ( 8.76 ) 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 TODO: Throw this away, assuming KVM drops its dedicated file system. Acked-by: Paul Moore Signed-off-by: Sean Christopherson --- security/security.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/security.c b/security/security.c index 23b129d482a7..0024156f867a 100644 --- a/security/security.c +++ b/security/security.c @@ -1693,6 +1693,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 /**