Skip to content
Commit 4a00c673 authored by Khadija Kamran's avatar Khadija Kamran Committed by Paul Moore
Browse files

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: default avatarKhadija Kamran <kamrankhadijadj@gmail.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 25cc71d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment