[RFC,v11,11/29] security: Export security_inode_init_security_anon() for use by KVM
Message ID | 20230718234512.1690985-12-seanjc@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2090364vqt; Tue, 18 Jul 2023 17:03:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEvxcp7XEWHczHtiWLheqxeku8MJI7VWtAjDIzOo0o0luyK+bQx/GKeVxzy7r0vCNvxakT X-Received: by 2002:a17:90b:1017:b0:263:72c5:7b68 with SMTP id gm23-20020a17090b101700b0026372c57b68mr511095pjb.14.1689725003831; Tue, 18 Jul 2023 17:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689725003; cv=none; d=google.com; s=arc-20160816; b=j3m1K5pDsUXLzs6ikhR73iSfj5vioQ0tcqhHIpbCOjYVoE8Tfdog08AWY6O09+066b MJGl7tB3NfF346grd/nOKAT64iXszBROUNYAKN1plSPUKAEiR2bcwYm9fTm1j7cF9xjv +YjHqawtJ9TV75lnwfjhdLIEJYfVE3IJErMc6RAAK8SLOsMxGbmKCM8uFhVVD1mKIkRV AkvqGTind9NVRyx1uoVW6VxPFukiGZt1rmoUNCeQgwFE38VwAA+t/qlh2oZZbzL5/AHG c7PimMOOisrnGF1pBBlN7YAeZcSHI+06TKyFkuISxRhhZJnRgVIduqhXhAS/f5jZpwCr mN7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=SDxWIrfosG9XJ1i6+ao4lNZmMm/71hk0CPfpAh3rles=; fh=D6d5aNryYQiYyjenfSFWOT3594jRd4xJmyqVXmIxeQo=; b=P37Kp+r2vfjy3ERoYbpljhAm3jORtvHnOasLvts5hAoLicfD4Ue6/WcJqJHt8MsQz7 d3d5GdSdjv2NB4gUYXOaVFngOFzwuMh4+3XEk/1vkF5nI9fw1zfZXASA7DyANhHiJW/c YNYvN0OrHtloXKG0sY2hAeviwfx16A8vXur46B9MlGSujtAqDmVElYWEHchxqF5jLdb9 +VQr3ywAPy4bX4jz8CfMeWKGWNupVxMi4FCi4j4FPmb8G+VnJuKi34iEOnL0LbocoypP 1gSBpMRmEIqOkI2voa2jLbh3p2Mwbo7XQYsBRb3co5ySlRxkOvr08N00dj4bfcQ65P9p xQPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=oKgQFwiC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a17090a840900b00262d819d895si269267pjn.86.2023.07.18.17.03.10; Tue, 18 Jul 2023 17:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=oKgQFwiC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbjGRXuq (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Tue, 18 Jul 2023 19:50:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231158AbjGRXty (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Jul 2023 19:49:54 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD3D2127 for <linux-kernel@vger.kernel.org>; Tue, 18 Jul 2023 16:48:54 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1b8a7734734so32264925ad.2 for <linux-kernel@vger.kernel.org>; Tue, 18 Jul 2023 16:48: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=e2QtAZ5ofrEAIVRrp9kRGvgHvgjP9tlK4b1AwDZH9fz8c08nkz4P15dOgdBlQSm1Vn sCA2sT6x5EHnSMHW0DhmEXBRjUsAJIuKd51xkh1fqykJSkTBnNUB9apqcidoloU92gX0 +c86bU/UCS2MAA0SiVp7D3tj//uFM3bJW+MWY2xs32mXN5j8wCqf1ATE9Gd2p9e75Qfs ipCwZ19WVVHAxoVT1yyjOv5HjIP9/PygNzCKuRRi6pIOJhPmTje9VhJwDznK2IMKJN8e 2LbDRnXRdyluhhCjJjkvZpyMicR8Eiy8NqcewTbh1KzIb0IMxobVn8svCzkNrTPo52MK 8DZg== X-Gm-Message-State: ABy/qLbsdA5PnycJoGTBVehxtEGTCYmaUwjqJrBIWqkIXNPoBUhSRJ4X REMNfTyyNbuiYL2cRI4YTYFtWyr8+LM= 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) Reply-To: Sean Christopherson <seanjc@google.com> 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 <seanjc@google.com> To: Paolo Bonzini <pbonzini@redhat.com>, Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, Huacai Chen <chenhuacai@kernel.org>, Michael Ellerman <mpe@ellerman.id.au>, Anup Patel <anup@brainfault.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Sean Christopherson <seanjc@google.com>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, Andrew Morton <akpm@linux-foundation.org>, Paul Moore <paul@paul-moore.com>, James Morris <jmorris@namei.org>, "Serge E. Hallyn" <serge@hallyn.com> 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 <chao.p.peng@linux.intel.com>, Fuad Tabba <tabba@google.com>, Jarkko Sakkinen <jarkko@kernel.org>, Yu Zhang <yu.c.zhang@linux.intel.com>, Vishal Annapurve <vannapurve@google.com>, Ackerley Tng <ackerleytng@google.com>, Maciej Szmigiero <mail@maciej.szmigiero.name>, Vlastimil Babka <vbabka@suse.cz>, David Hildenbrand <david@redhat.com>, Quentin Perret <qperret@google.com>, Michael Roth <michael.roth@amd.com>, Wang <wei.w.wang@intel.com>, Liam Merwick <liam.merwick@oracle.com>, Isaku Yamahata <isaku.yamahata@gmail.com>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771805086068358442 X-GMAIL-MSGID: 1771805086068358442 |
Series |
KVM: guest_memfd() and per-page attributes
|
|
Commit Message
Sean Christopherson
July 18, 2023, 11:44 p.m. UTC
Signed-off-by: Sean Christopherson <seanjc@google.com>
---
security/security.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Tue, Jul 18, 2023 at 7:48 PM Sean Christopherson <seanjc@google.com> wrote: > > Signed-off-by: Sean Christopherson <seanjc@google.com> > --- > security/security.c | 1 + > 1 file changed, 1 insertion(+) Acked-by: Paul Moore <paul@paul-moore.com> > 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 > /** > -- > 2.41.0.255.g8b1d071c50-goog -- paul-moore.com
On 7/19/23 01:44, Sean Christopherson wrote: > Signed-off-by: Sean Christopherson <seanjc@google.com> Process wise this will probably be frowned upon when done separately, so I'd fold it in the patch using the export, seems to be the next one. > --- > 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 > /**
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 /**