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>
Showing
- include/linux/fs.h 1 addition, 1 deletioninclude/linux/fs.h
- include/linux/lsm_hook_defs.h 1 addition, 1 deletioninclude/linux/lsm_hook_defs.h
- include/linux/security.h 3 additions, 3 deletionsinclude/linux/security.h
- security/commoncap.c 2 additions, 2 deletionssecurity/commoncap.c
- security/security.c 1 addition, 1 deletionsecurity/security.c
Please register or sign in to comment