Re: [PATCH] lsm: constify the 'file' parameter in security_binder_transfer_file()
From: Paul Moore <paul@paul-moore.com>
Date: 2023-08-15 20:05:31
Also in:
lkml, selinux
From: Paul Moore <paul@paul-moore.com>
Date: 2023-08-15 20:05:31
Also in:
lkml, selinux
On Aug 12, 2023 Khadija Kamran [off-list ref] wrote:
SELinux registers the implementation for the "binder_transfer_file" hook. Looking at the function implementation we observe that the parameter "file" is not changing. Mark the "file" parameter of LSM hook security_binder_transfer_file() as "const" since it will not be changing in the LSM hook. Signed-off-by: Khadija Kamran <redacted> --- include/linux/lsm_hook_defs.h | 2 +- include/linux/security.h | 4 ++-- security/security.c | 2 +- security/selinux/hooks.c | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-)
Looks good to me, merged into lsm/next, thanks! -- paul-moore.com