[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <80c3c2b488a603da62a0fd15201dec0b.paul@paul-moore.com>
Date: Tue, 15 Aug 2023 16:04:33 -0400
From: Paul Moore <paul@...l-moore.com>
To: Khadija Kamran <kamrankhadijadj@...il.com>,
James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.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,
ztarkhani@...rosoft.com,
Alison Schofield <alison.schofield@...el.com>
Subject: Re: [PATCH] lsm: constify the 'file' parameter in security_binder_transfer_file()
On Aug 12, 2023 Khadija Kamran <kamrankhadijadj@...il.com> wrote:
>
> SELinux registers the implementation for the "binder_transfer_file"
> hook. Looking at the function implementation we observe that the
> parameter "file" is not changing.
>
> Mark the "file" parameter of LSM hook security_binder_transfer_file() 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 | 8 ++++----
> 4 files changed, 8 insertions(+), 8 deletions(-)
Looks good to me, merged into lsm/next, thanks!
--
paul-moore.com
Powered by blists - more mailing lists