[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHC9VhSnzZ-75EVyOx6SO1_61y7HT-oGHisCwNSeM+VpjzhaDQ@mail.gmail.com>
Date: Wed, 14 Sep 2022 07:52:26 -0400
From: Paul Moore <paul@...l-moore.com>
To: cgel.zte@...il.com
Cc: stephen.smalley.work@...il.com, eparis@...isplace.org,
keescook@...omium.org, anton@...msg.org, ccross@...roid.com,
tony.luck@...el.com, selinux@...r.kernel.org,
linux-kernel@...r.kernel.org, bpf@...r.kernel.org,
Xu Panda <xu.panda@....com.cn>, Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH linux-next] selinux/hooks: remove the unneeded result variable
On Mon, Sep 12, 2022 at 5:24 AM <cgel.zte@...il.com> wrote:
> From: Xu Panda <xu.panda@....com.cn>
>
> Return the value avc_has_perm() directly instead of storing it in
> another redundant variable.
>
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: Xu Panda <xu.panda@....com.cn>
> ---
> security/selinux/hooks.c | 24 +++++++++---------------
> 1 file changed, 9 insertions(+), 15 deletions(-)
Merged into selinux/next, thanks.
--
paul-moore.com
Powered by blists - more mailing lists