[PATCH 1/6] security_dentry_init_security(): constify qstr argument

Paul Moore paul at paul-moore.com
Thu Sep 11 20:54:20 UTC 2025


On Sep 11, 2025 Al Viro <viro at zeniv.linux.org.uk> wrote:
> 
> Nothing outside of fs/dcache.c has any business modifying
> dentry names; passing &dentry->d_name as an argument should
> have that argument declared as a const pointer.
> 
> Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
> Acked-by: Casey Schaufler <casey at schaufler-ca.com>
> Reviewed-by: David Howells <dhowells at redhat.com>
> ---
>  include/linux/lsm_hook_defs.h | 2 +-
>  include/linux/security.h      | 4 ++--
>  security/security.c           | 2 +-
>  security/selinux/hooks.c      | 2 +-
>  security/smack/smack_lsm.c    | 2 +-
>  5 files changed, 6 insertions(+), 6 deletions(-)

LSM and SELinux bits look fine to me.  Al, I'm guessing you would
prefer to take this patch as part of the larger patchset, but if you
want me to take this single patch for the upcoming merge window let
me know.

Acked-by: Paul Moore <paul at paul-moore.com>

--
paul-moore.com



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