lsm: constify 'file' parameter in security_bprm_creds_from_file()
authorKhadija Kamran <kamrankhadijadj@gmail.com>
Wed, 23 Aug 2023 07:17:29 +0000 (12:17 +0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 13 Sep 2023 22:09:35 +0000 (18:09 -0400)
commit4a00c673068e72c12d243f5c31000246d6984e44
tree197059d93d35905fe91aa75b4b76a48d834a798a
parent25cc71d1527b55c880d333e7cc1dc37aeef9843f
lsm: constify 'file' parameter in security_bprm_creds_from_file()

The 'bprm_creds_from_file' hook has implementation registered in
commoncap. Looking at the function implementation we observe that the
'file' parameter is not changing.

Mark the 'file' parameter of LSM hook security_bprm_creds_from_file() as
'const' since it will not be changing in the LSM hook.

Signed-off-by: Khadija Kamran <kamrankhadijadj@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/fs.h
include/linux/lsm_hook_defs.h
include/linux/security.h
security/commoncap.c
security/security.c