[PATCH 2/2] selinux:Delete selinux_xfrm_policy_lookup() useless argument

Paul Moore paul at paul-moore.com
Tue May 11 01:40:11 UTC 2021


On Fri, Apr 9, 2021 at 1:52 AM Zhongjun Tan <hbut_tan at 163.com> wrote:
>
> From: Zhongjun Tan <tanzhongjun at yulong.com>
>
> seliunx_xfrm_policy_lookup() is hooks of security_xfrm_policy_lookup().
> The dir argument is uselss in security_xfrm_policy_lookup(). So
> remove the dir argument from selinux_xfrm_policy_lookup() and
> security_xfrm_policy_lookup().
>
> Signed-off-by: Zhongjun Tan <tanzhongjun at yulong.com>
> ---
>  include/linux/lsm_hook_defs.h   | 3 +--
>  include/linux/security.h        | 4 ++--
>  net/xfrm/xfrm_policy.c          | 6 ++----
>  security/security.c             | 4 ++--
>  security/selinux/include/xfrm.h | 2 +-
>  security/selinux/xfrm.c         | 2 +-
>  6 files changed, 9 insertions(+), 12 deletions(-)

Merged into selinux/next, thanks.

-- 
paul moore
www.paul-moore.com



More information about the Linux-security-module-archive mailing list