Thread (2 messages) 2 messages, 2 authors, 2023-09-13

Re: [PATCH] lsm: constify 'sb' parameter in security_quotactl()

From: Paul Moore <paul@paul-moore.com>
Date: 2023-09-13 21:57:05
Also in: lkml, selinux

On Aug 23, 2023 Khadija Kamran [off-list ref] wrote:
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 <redacted>
---
 include/linux/lsm_hook_defs.h | 2 +-
 include/linux/security.h      | 4 ++--
 security/security.c           | 2 +-
 security/selinux/hooks.c      | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
Looks good to me, merged into lsm/next.  Thanks!

--
paul-moore.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help