lsm: constify 'sb' parameter in security_quotactl()
authorKhadija Kamran <kamrankhadijadj@gmail.com>
Wed, 23 Aug 2023 06:44:41 +0000 (11:44 +0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 13 Sep 2023 21:57:01 +0000 (17:57 -0400)
commit25cc71d1527b55c880d333e7cc1dc37aeef9843f
tree3e59f618d4b8363bb20dea07c9c496f927197582
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
lsm: constify 'sb' parameter in security_quotactl()

SELinux registers the implementation for the "quotactl" hook. Looking at
the function implementation we observe that the parameter "sb" is not
changing.

Mark the "sb" parameter of LSM hook security_quotactl() 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/security.c
security/selinux/hooks.c