[PATCH] lsm: constify 'bprm' parameter in security_bprm_committing_creds()
Paul Moore
paul at paul-moore.com
Wed Sep 13 22:13:03 UTC 2023
On Aug 23, 2023 Khadija Kamran <kamrankhadijadj at gmail.com> wrote:
>
> 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 at gmail.com>
> ---
> include/linux/lsm_hook_defs.h | 2 +-
> include/linux/security.h | 4 ++--
> security/apparmor/lsm.c | 2 +-
> security/security.c | 2 +-
> security/selinux/hooks.c | 2 +-
> 5 files changed, 6 insertions(+), 6 deletions(-)
Merged into lsm/next, thanks!
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list