summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorZhongjun Tan <tanzhongjun@yulong.com>2021-04-09 08:48:41 +0300
committerPaul Moore <paul@paul-moore.com>2021-05-11 04:38:31 +0300
commit8a922805fb0950187ff037801e337aec010a6ccb (patch)
treed908497ce11f9562925088ef5ca4020ae565d7f4 /security/security.c
parente1cce3a3cb28ba39d50166a78da91c8b5aae4af1 (diff)
downloadlinux-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/security.c')
-rw-r--r--security/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c
index b38155b2de83..0c1c9796e3e4 100644
--- a/security/security.c
+++ b/security/security.c
@@ -2466,9 +2466,9 @@ void security_xfrm_state_free(struct xfrm_state *x)
call_void_hook(xfrm_state_free_security, x);
}
-int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir)
+int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid)
{
- return call_int_hook(xfrm_policy_lookup, 0, ctx, fl_secid, dir);
+ return call_int_hook(xfrm_policy_lookup, 0, ctx, fl_secid);
}
int security_xfrm_state_pol_flow_match(struct xfrm_state *x,