lsm: constify 'bprm' parameter in security_bprm_committing_creds()
authorKhadija Kamran <kamrankhadijadj@gmail.com>
Wed, 23 Aug 2023 07:47:56 +0000 (12:47 +0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 13 Sep 2023 22:13:05 +0000 (18:13 -0400)
commit64fc9526147c7fc14535134d8ea79b9c8dc549a7
tree20aabf4c2f533e7b164f5acab23a9ae40b90b607
parent4a00c673068e72c12d243f5c31000246d6984e44
lsm: constify 'bprm' parameter in security_bprm_committing_creds()

The 'bprm_committing_creds' hook has implementations registered in
SELinux and Apparmor. Looking at the function implementations we observe
that the 'bprm' parameter is not changing.

Mark the 'bprm' parameter of LSM hook security_bprm_committing_creds()
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/lsm_hook_defs.h
include/linux/security.h
security/apparmor/lsm.c
security/security.c
security/selinux/hooks.c