On Thu, Nov 5, 2026 at 4:07 PM 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.
Signed-off-by: Lorenzo Stoakes (ARM) ljs@kernel.org
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@paul-moore.com