Re: [PATCH 07/14] selinuxfs: convert mmap hooks to mmap_prepare

From: Paul Moore

Date: Thu Nov 05 2026 - 18:17:41 EST


On Thu, Nov 5, 2026 at 4:07 PM Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx> 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.
>
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
> ---
> security/selinux/selinuxfs.c | 24 +++++++++++-------------
> 1 file changed, 11 insertions(+), 13 deletions(-)

See my comment in the cover letter. I'd prefer to take this via the
SELinux tree so it can be included in all of our SELinux testing for
v7.5, but if this has to go through a single tree with the rest of the
changes, here is my ACK.

Acked-by: Paul Moore <paul@xxxxxxxxxxxxxx>

--
paul-moore.com