[PATCH v3 2/7] apparmor: Remove redundant MS_MGC_MSK stripping in apparmor_sb_mount

Paul Moore paul at paul-moore.com
Mon May 11 19:52:42 UTC 2026


On May  8, 2026 Song Liu <song at kernel.org> wrote:
> 
> path_mount() already strips the magic number from flags before
> calling security_sb_mount(), so this check in apparmor_sb_mount()
> is a no-op. Remove it.
> 
> Code generated with the assistance of Claude, reviewed by human.
> 
> Signed-off-by: Song Liu <song at kernel.org>
> ---
>  security/apparmor/lsm.c | 4 ----
>  1 file changed, 4 deletions(-)

John, Georgia, are you okay with this patch?

--
paul-moore.com



More information about the Linux-security-module-archive mailing list