[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c1b149b8a7d35ed3b5da3b17f38547eb.paul@paul-moore.com>
Date: Thu, 14 Sep 2023 15:27:28 -0400
From: Paul Moore <paul@...l-moore.com>
To: Khadija Kamran <kamrankhadijadj@...il.com>,
John Johansen <john.johansen@...onical.com>,
James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>, apparmor@...ts.ubuntu.com,
linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org,
Stephen Smalley <stephen.smalley.work@...il.com>,
Eric Paris <eparis@...isplace.org>, selinux@...r.kernel.org,
Kentaro Takeda <takedakn@...data.co.jp>,
Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>,
ztarkhani@...rosoft.com, alison.schofield@...el.com
Subject: Re: [PATCH] lsm: constify 'bprm' parameter in security_bprm_committed_creds()
On Aug 23, 2023 Khadija Kamran <kamrankhadijadj@...il.com> wrote:
>
> Three LSMs register the implementations for the 'bprm_committed_creds()'
> hook: AppArmor, SELinux and tomoyo. Looking at the function
> implementations we may observe that the 'bprm' parameter is not changing.
>
> Mark the 'bprm' parameter of LSM hook security_bprm_committed_creds() 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/apparmor/lsm.c | 2 +-
> security/security.c | 2 +-
> security/selinux/hooks.c | 2 +-
> security/tomoyo/tomoyo.c | 2 +-
> 6 files changed, 7 insertions(+), 7 deletions(-)
Merged into lsm/next, thanks!
--
paul-moore.com
Powered by blists - more mailing lists