Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4268544rwb; Mon, 31 Jul 2023 04:31:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFgczF/u38rqt9IVEjNjPMigzI9SsZV9+GeDOjLTIEL8cg8/oq4wG6yjE9Iqq7JNz9yko8 X-Received: by 2002:a17:906:5192:b0:99b:cecf:dc4 with SMTP id y18-20020a170906519200b0099bcecf0dc4mr6377032ejk.48.1690803071812; Mon, 31 Jul 2023 04:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690803071; cv=none; d=google.com; s=arc-20160816; b=RfkLQ4S/d197mM7+Lkskk7Zxs76WTD3n+H7rjWzRNyjqlHOUAU7OO0AlCeiV1l+8iS CMwCIQu32zMH9RA5YE9a5R/4IuuMss1LF+ZSyzP8UmjOU+OcOACsGMOj76qI8KBqf4kC j0CUh6tCOQDPi3Gx6Hr1Qz+C8QCAYffdBHu6MJ/lPdqLfOmIMaisXZuKE6LDaQla0BNp JX+z7KWMhaYPCeOuFgR2DHQ6jROFi0M1n1h65mv9U+YozrQdldB+6xuNmOhBi0OMbtuX 3xAjkbvrJEb/+X8e9J5dsjVkBaMlwXiZZj9Kl+VyugSht7rAYH5Z3CuaRkaEeGSiYH8L fhPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=A4Z9iV8WUq8OgKp1VPZMtqr/fdl1VBql1c/Mb0w5bXo=; fh=c7sW1za4Lljo8bzDJLZJVpIHxyaILfaD11KCC1RSisk=; b=j/ul9r5ZE/ntl7iA7l7eF6Mm/Z97JEv28hNjksSDW2ONfDRjLAFVaOrst1tik0dJxj qt9etz5UdEm2Xq8SQ+jjqqFMSvx+hXjL3Ia513uOM/jNtq1HG/qePnNFeVSEffNysR0K F18zzaXhTZmb783GS4yXzr3DYNTeed7NBWx0EBhxTqmxotOrJQm7dPIknTdLmQ2pWslI m0i22ToKeGQFUGbSB0rwF+8nWej0Zu2l5MNbFPSDinB0ZLpcWYw8a6SVUWG4PvybQ9Xk 0FG++QYISagvApzrNn87zRxnHx36H3MhFOKf4iyPzLz+fs9ZCevjRncq5YCXpa/MD2oB YWBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Exj3kmfQ; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a1709067e0800b0098dfa5abc0bsi6832582ejr.88.2023.07.31.04.30.36; Mon, 31 Jul 2023 04:31:11 -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=@suse.cz header.s=susede2_rsa header.b=Exj3kmfQ; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbjGaKq2 (ORCPT + 99 others); Mon, 31 Jul 2023 06:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjGaKq1 (ORCPT ); Mon, 31 Jul 2023 06:46:27 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FFB51A7; Mon, 31 Jul 2023 03:46:25 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CF64C1F385; Mon, 31 Jul 2023 10:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1690800383; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A4Z9iV8WUq8OgKp1VPZMtqr/fdl1VBql1c/Mb0w5bXo=; b=Exj3kmfQTKCKpyIZnjdm9Mvz5gBVaux+NQ6wJw5l7I7rO3L4maLcSiuzI2p7Q49IBMjetL xe/MgKMLgGJtpRwvOslM6mLQQujpQPOcqs/XyjVIehZ+ZSbLNMDJPVw0mXY1GidYtYVxz8 C1A0i0a9YpceiH1Z58NOjfTiBXIuwvs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1690800383; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A4Z9iV8WUq8OgKp1VPZMtqr/fdl1VBql1c/Mb0w5bXo=; b=h0sQyUjlm33c+qAKcpveXNGpf70sdzLYqGQ7a1iNdlCd37LicU72PtLA0VpXiauhLfiXN0 dPr7yXhCsG53prDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 220C7133F7; Mon, 31 Jul 2023 10:46:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id z0FUB/+Qx2RKZAAAMHmgww (envelope-from ); Mon, 31 Jul 2023 10:46:23 +0000 Message-ID: <703da7eb-d08a-3eca-1b98-b5895e41d53b@suse.cz> Date: Mon, 31 Jul 2023 12:46:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: [RFC PATCH v11 11/29] security: Export security_inode_init_security_anon() for use by KVM To: Sean Christopherson , Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , "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 , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" References: <20230718234512.1690985-1-seanjc@google.com> <20230718234512.1690985-12-seanjc@google.com> Content-Language: en-US From: Vlastimil Babka In-Reply-To: <20230718234512.1690985-12-seanjc@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org On 7/19/23 01:44, Sean Christopherson wrote: > Signed-off-by: Sean Christopherson 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 > /**