[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <476895eed013ebdb836ae40fc1f62561.paul@paul-moore.com>
Date: Wed, 13 Sep 2023 17:56:59 -0400
From: Paul Moore <paul@...l-moore.com>
To: Khadija Kamran <kamrankhadijadj@...il.com>,
linux-kernel@...r.kernel.org, James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
linux-security-module@...r.kernel.org,
Stephen Smalley <stephen.smalley.work@...il.com>,
Eric Paris <eparis@...isplace.org>, selinux@...r.kernel.org,
ztarkhani@...rosoft.com, alison.schofield@...el.com
Subject: Re: [PATCH] lsm: constify 'sb' parameter in security_quotactl()
On Aug 23, 2023 Khadija Kamran <kamrankhadijadj@...il.com> 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 <kamrankhadijadj@...il.com>
> ---
> 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
Powered by blists - more mailing lists