diff options
author | Zhongjun Tan <tanzhongjun@yulong.com> | 2021-04-09 08:48:41 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-05-11 04:38:31 +0300 |
commit | 8a922805fb0950187ff037801e337aec010a6ccb (patch) | |
tree | d908497ce11f9562925088ef5ca4020ae565d7f4 /security/selinux/xfrm.c | |
parent | e1cce3a3cb28ba39d50166a78da91c8b5aae4af1 (diff) | |
download | linux-8a922805fb0950187ff037801e337aec010a6ccb.tar.xz |
selinux: delete selinux_xfrm_policy_lookup() useless argument
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@yulong.com>
[PM: reformat the subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/xfrm.c')
-rw-r--r-- | security/selinux/xfrm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c index 634f3db24da6..be83e5ce4469 100644 --- a/security/selinux/xfrm.c +++ b/security/selinux/xfrm.c @@ -150,7 +150,7 @@ static int selinux_xfrm_delete(struct xfrm_sec_ctx *ctx) * LSM hook implementation that authorizes that a flow can use a xfrm policy * rule. */ -int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir) +int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid) { int rc; |