Article View: linux.kernel.netdev
Article #25757Re: [PATCH v2 06/13] selinuxfs: convert mmap hooks to mmap_prepare
From: "Lorenzo Stoakes (ARM)"
Date: Wed, 02 Dec 2026 11:45
Date: Wed, 02 Dec 2026 11:45
27 lines
11046 bytes
11046 bytes
On Tue, Dec 01, 2026 at 10:53:18PM -0500, Paul Moore wrote: > On Tue, Nov 24, 2026 at 9:04 AM Lorenzo Stoakes (ARM) <ljs@kernel.org> wrote: > > > > Move from the deprecated mmap hook to the new mmap_prepare hook for the > > policy and status files. > > > > The policy file only sets VMA flags and operations. The status file remaps > > a single page, so use the PFN remap mmap action to do so. > > > > Acked-by: Paul Moore <paul@paul-moore.com> > > Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> > > --- > > security/selinux/selinuxfs.c | 24 +++++++++++------------- > > 1 file changed, 11 insertions(+), 13 deletions(-) > > Similar to the vma_flags_t patch, I didn't see this get picked up so I > just merged it into the selinux/dev branch. If you are merging this > via another route let me know so I can drop it. Andrew's taken it, but I guess similar to vma_flags_t stuff he can drop it so you can keep this in your tree? Andrew? -- Cheers, Lorenzo
Technical Details
Message-ID:
<axAEv-44Uw5tOsBE@gremlin>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375745-linux-kernel-netdev=dewy.ruReferences:
<20261124-late-2026-mmap_prepare-v2-0-0b0d99d655f9@kernel.org> <20261124-late-2026-mmap_prepare-v2-6-0b0d99d655f9@kernel.org> <CAHC9VhSmBBCFSsG8jXm7fKfPEBLY+sSy4mca3-iwMK2H_Niq8w@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375745-linux-kernel-netdev=dewy.ru
From: ljs@kernel.org ("Lorenzo Stoakes (ARM)")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2 06/13] selinuxfs: convert mmap hooks to mmap_prepare
Date: Wed, 2 Dec 2026 11:45:40 +0000
Organization: Usenet Network
Message-ID: <axAEv-44Uw5tOsBE@gremlin>
References: <20261124-late-2026-mmap_prepare-v2-0-0b0d99d655f9@kernel.org>
<20261124-late-2026-mmap_prepare-v2-6-0b0d99d655f9@kernel.org>
<CAHC9VhSmBBCFSsG8jXm7fKfPEBLY+sSy4mca3-iwMK2H_Niq8w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1962199"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:atG2//nX55hqEJvoLbSF2+C4K9U= sha256:b/us7NAVFiHzHym7IJ4QOrWChWpY76H/yh/JQ7zPeGQ=
sha1:h+TWsj04kT/nLgzAa9l0iQrPrzI= sha256:2Iu3A7Opbo+eaD8tmgib8flXR8AUOvOQ2rdpH/20WiY=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id C7D2B11760C; Wed, 2 Dec 2026 14:46:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id IHB0OQbGrB6b;
Wed, 2 Dec 2026 14:46:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-375745-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id D35681175FB; Wed, 2 Dec 2026 14:46:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id F3F6C25E2B; Wed, 2 Dec 2026 11:46:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796211967;
b=LK0XCt9tl150C2isXprQcSo0cELPb4Q6JW6TS7xON7C9HOR4qWzx85T7uCZndGD2Y752
4GL8GdKLmSGVqn7BsBXhpzmYnYPKe/qkn1KHfb44VKsNg8BOfwZB7Mq4kRgSV1mwtx1qN
lnm1MREs5wM4qcR2xcvfKKsobDSFEEf/tsPWbWWBYeKEQM7uqtZcJ1oeXQeXKTKKligRh
f1qCe9GCZsAekJTGaZUaBqsKAHEMQZ2r9DtVs69S1izOqLO6FCm6FPq7rzyuTalFhh1f9
CuSxwbYtyexnBne/fSOa8uDxO7iBgZnT+gfqSJNlCNb1yaFyCtxvZvWgudIAx6+wYHA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796211967;
h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Type:Content-Disposition:
Content-Transfer-Encoding:In-Reply-To;
bh=3kKyelT8Iic+USmLCpYxXUQohpsnv6YY9rRcpMnNsPw=;
b=Q+3c4jJVFbb2MQlLB9rZ8MU85fNBxAftfESbX126aRfcymhb9o7+rGCK1B/KgNWB7ND3
fsXiXjFA7JWvRmTgxubra7TGsfwz5rCNyy/cwM3MQTuzbo89B+d/W2BM6ad3IfpGSp3r3
isbR41mJZxrp8huUA1EzFezxH7W4x9XexvMpVfcgc9bEoHInLsncSst/ufkPPAoEliGXE
IRewZ9DYfTAsgdkcAM0MDNTJoUIuCSpPQ3YJfcLpxUWfpXDvf3lwlbc6ytIj+9xBX5qfN
SIU4I4JU0CWqAmfZZ2TA7Bce8f1FJpmoNcfnMvZQSxpksRExwPh6ZalhhnDnpjhbdig==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fkfWhxQP;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 5777D606A322;
Wed, 2 Dec 2026 11:46:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fkfWhxQP
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796211956;
b=vqFpGd6nf9nSqsBSiBAdtPx4noss0Tsfe87cucuMzR3/mYeUnONqcnotsR3iJ4v6sjkj
LPfNkHYF+Cv3/emzZWfKjd5+PaYjtGua0kfHpxHwNfbtmt6OKG+u+w6u2PB8OJ8unyq0X
H9sNjQDORLr4pJ18DVeqkI1pYMtPN9LAi3lpktWEAPGTaaSjQDuIdwDSzy9oU7FSwbAGk
QrbPg7Eeyc5CxmSfUQ/1gzSDGrnVtlzZFHi+QjH+/FCeRwtP0BIkMrxTBgM5REzUxAV2G
KQZFDHG1h4LvEUDbuDHKPlSPCE/3BANtzYiVdw0uV/HxHGGsbjHDml8s1fhtjE0muHQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796211956;
h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
References:MIME-Version:Content-Type:Content-Disposition:
Content-Transfer-Encoding:In-Reply-To;
bh=3kKyelT8Iic+USmLCpYxXUQohpsnv6YY9rRcpMnNsPw=;
b=rEl+DAjDtvCjhA4zJ0lPnxBQR602Q/EeLbWN5UYXFr5eJpVdINzTUTYhjvXRot+CFmr/
nJc2dkZSqo/fx9s/TqJhVug5oHg/o1t6JLl51o44+XHCYKYIrMcrsAPcenzrQXdlWbzeF
Mt6I8d6JMILb3SL871fJxyUhc5cQNSi4CxdHcvR/oP0cS2YwiOvDl7zKldmU4UNQaIT1m
z6sXKL5KlN7Ln9J32gWuzwS4h0YwO9OKjkf1cBXBzwg/s0cBC3yiaRXE+XQ1qllmSEKCc
eA8vl0Pz/nFkfOKcA3y0j4DBs0r1hu0zFXHIlUL+7/ehgD1sGUk+AEq34siwFzDU7Rg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fkfWhxQP;
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 706FD606A31A;
Wed, 2 Dec 2026 11:45:56 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29FB61F00896;
Wed, 2 Dec 2026 11:45:42 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1796211956;
bh=3kKyelT8Iic+USmLCpYxXUQohpsnv6YY9rRcpMnNsPw=;
h=Date:From:To:Cc:Subject:References:In-Reply-To;
b=fkfWhxQP0yio8lCunj1VLXR76A2hmLCicueloO37EzysdCZEjHhdgXcFuFlD/qwDJ
GkCR/+RgjJS0Sw8QX4uvwN9jwYmDGL4hKXnKfmDPCSYlqawYF+2XBW3U/MzvPvJxCo
hJYCQuDR4+LwlKWIdFpFaxgRX82Nklmuj26/wTZW8DF1IEvy53ldipB0QuXXLDzPlJ
7+9oVS7tSmHqMuf2D/mL2WWlgNIecEYTxR8OMYh7CnuVxyFYaBPNlALODHdiyHqKNb
4fY/1lRdJ8iM/9Cs14xbFrfil1NAymzT54Ee0EHFvbn0L+xAMJH1N/iJVA9oJxzuNU
AVT9VC5FZAS0w==
X-Cc: Andrew Morton <akpm@linux-foundation.org>,
Juergen Gross <jgross@suse.com>, Stefano Stabellini <sstabellini@kernel.org>,
Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>, Madhavan Srinivasan <maddy@linux.ibm.com>,
Nicholas Piggin <npiggin@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>,
"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>, "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
Shrikanth Hegde <sshegde@linux.ibm.com>, Haiyang Zhang <haiyangz@microsoft.com>,
Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
"Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowangio@gmail.com>,
Eugenio Pérez <eperezma@redhat.com>, Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
Jarkko Sakkinen <jarkko@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>,
Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Jan Kara <jack@suse.com>,
Stephen Smalley <stephen.smalley.work@gmail.com>, Ondrej Mosnáček <omosnacek@gmail.com>,
Joel Stanley <joel@jms.id.au>, Andrew Jeffery <andrew@codeconstruct.com.au>,
Ryan Chen <ryan_chen@aspeedtech.com>, Billy Tsai <billy_tsai@aspeedtech.com>,
Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Jens Wiklander <jenswi@kernel.org>,
Sumit Garg <sumit.garg@kernel.org>, Scott Branden <scott.branden@broadcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Richard Cochran <richardcochran@gmail.com>,
David Woodhouse <dwmw2@infradead.org>, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, xen-devel@lists.xenproject.org,
linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org,
linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, linux-sgx@vger.kernel.org,
selinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-arm-msm@vger.kernel.org, op-tee@lists.trustedfirmware.org,
netdev@vger.kernel.org, linux-mm@kvack.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <CAHC9VhSmBBCFSsG8jXm7fKfPEBLY+sSy4mca3-iwMK2H_Niq8w@mail.gmail.com>