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: 13317880 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FB56EB64DD for ; Tue, 18 Jul 2023 23:48:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 87A628D0029; Tue, 18 Jul 2023 19:48:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7DB468D0012; Tue, 18 Jul 2023 19:48:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A41F8D0029; Tue, 18 Jul 2023 19:48:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 4C32E8D0012 for ; Tue, 18 Jul 2023 19:48:56 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 23F8E12022A for ; Tue, 18 Jul 2023 23:48:56 +0000 (UTC) X-FDA: 81026375472.01.CF8F23B Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by imf06.hostedemail.com (Postfix) with ESMTP id 3F02B180005 for ; Tue, 18 Jul 2023 23:48:53 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=oKgQFwiC; spf=pass (imf06.hostedemail.com: domain of 35SS3ZAYKCDgmYUhdWaiiafY.Wigfchor-ggepUWe.ila@flex--seanjc.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=35SS3ZAYKCDgmYUhdWaiiafY.Wigfchor-ggepUWe.ila@flex--seanjc.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689724134; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=SDxWIrfosG9XJ1i6+ao4lNZmMm/71hk0CPfpAh3rles=; b=IsrdtOQgLLlzcpj23dI0GxAHYEF873X2jMQwXR9CcvYgEF9VBOpcGPcQuErKEyO3itaIVz d1xG8ZCR3lifqxhHo7HGOUz6rLkfMEJ7orcNv969XZHbjCXQ0oghnXhbGbmDJaWSoHyuSJ 1dMC++MbrGz9IFjaFj+blR6PemcZWSQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689724134; a=rsa-sha256; cv=none; b=PDL9lmYeCIeQ4WFkyH6pYf++w/nMDMIdxbCiuF1LxMM/nWaIc/IChaFlT2diU49YSTWAqe PwZZQDulvSIGEeHOaBXKZ1Rzqq2R2Z25EoSYeJG1nPOvbJQ5fw5FmECNhr6hLc89Qv1AAL unx/dPmFTAWXpz7JgtV8a6ZAr1YFVpg= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=oKgQFwiC; spf=pass (imf06.hostedemail.com: domain of 35SS3ZAYKCDgmYUhdWaiiafY.Wigfchor-ggepUWe.ila@flex--seanjc.bounces.google.com designates 209.85.214.202 as permitted sender) smtp.mailfrom=35SS3ZAYKCDgmYUhdWaiiafY.Wigfchor-ggepUWe.ila@flex--seanjc.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1b89e3715acso32241965ad.3 for ; Tue, 18 Jul 2023 16:48:53 -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=AVWQW28l+W9xK1/ycScGYQngO+B1m/k8yJ4u5rCXXEw6McbKyah2UVQa7567Ni7uzi jWNvYoLy6AJhuCygVwCRxO/en371cVq/xjAne+UFjIL6nr1OaGyI+gUhzj5AJQxvcbHK dcn9Uq8qqfPFO5SHeb9k0rr3rELvQL/rT3Et/JSRzEKNmDpkRx7t7Vs0wh6dOju+eTTD 885y3Y72SGP97JDy2EVfz+xuwcm+tPQTxaA92g49VHpu09EJiCYT2uMYAV0Y6HPIhUj3 pFEEi8Cq+P61V7VQ5Uc8z6nIkzYczQiwhudRLrZTennNjt9Nch2R/iYgRe74kpW2ShkV FS1g== X-Gm-Message-State: ABy/qLZWkTQTe6Qr/QA75uHMIyUXw7mkOTWeHnG6D1i2gWic0UV33YR0 ZuwTpmcQ9cVNcDRnxyOPRsdLlZdgj3c= 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) Reply-To: Sean Christopherson 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-Rspamd-Queue-Id: 3F02B180005 X-Rspam-User: X-Rspamd-Server: rspam11 X-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B7m2V+BL9C5q5UnQJ6Aa4oL++B/vISNdTZEMHd4UjzCAc5b9ezrGs58J+oCm7Rjw30Uo4qGZGwFV4obUg2nXHlWWm1J6Q4I5Nwnn6+egOyLB5T2J+CDnnQ3nmoieSn5jgzl1mrVQ+K2ii6KtF3Yth91/n6yZrsqZFpnv5T6YC5SP3gmXUsfCKhQfyy5QSG7RXXC1G1XWT1mRG9UPzEd+Clr8KMEDhTgAGemnipWS7xr4q6CHsshXkanRkjSEYA6POpbPoTMEuQs3WorV5kbsLC9E+U2zpoGF7N4PnGEtDnsebF4K2O0V4EvU3JNfSvU/ZvaCMbG7XxWHn+y3/KCUtA3VAaEX6rjLxvbVnrnUVmxR/Z77u5xH/Lg13qhIucFRaw2d77UiYFLMPaSYyliHkVteb7Y/YSLAA4I+A+cOJYeLYajm6l8G+yQFzqwRfnmG7IO7gfnoLzFuONKrj92Q9dpUqD0SHMaobLX5gMMrOFOtLBu27HkZzQKsxcL3hvIbZ30c47/UkcsLX9ywB9GKNEvhWE+rBilTK16UNh1n0eNLxV234E1hwxCySBi3I5SKZEKgFO9OoNLk/5CjXyjcHBkphN2ml73J8l2cSukSmhx+QAnPt08244m3bNf5ajpZ21bnVG9wEH2MuVcj6QkLisIbob9feczhtMsJIOCK6fsqGOMrpYpajPZ1JVBrLyIbl/MQ3xXdROclS1T7JAlt5okpkzkjPzOw5cbj2u1umT0UUumHvA8WAifRBIN4DOwsi56QdBlP9tVUm9/NC1NghGTLphmsfgxVmb7UWEWRfgBYYg56sZQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 /**