diff options
author | David Miller <davem@davemloft.net> | 2017-11-28 15:40:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-30 09:54:25 -0500 |
commit | b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b (patch) | |
tree | f8fb92d4c9394bdf61716d074b9aaa15fbf22450 /security/selinux/xfrm.c | |
parent | 071fb37ec43dcd88937a669c5f97bd37f7d29dea (diff) |
net: Create and use new helper xfrm_dst_child().
Only IPSEC routes have a non-NULL dst->child pointer. And IPSEC
routes are identified by a non-NULL dst->xfrm pointer.
Signed-off-by: David S. Miller <davem@davemloft.net>
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 56e354fcdfc6..928188902901 100644 --- a/security/selinux/xfrm.c +++ b/security/selinux/xfrm.c | |||
@@ -452,7 +452,7 @@ int selinux_xfrm_postroute_last(u32 sk_sid, struct sk_buff *skb, | |||
452 | if (dst) { | 452 | if (dst) { |
453 | struct dst_entry *iter; | 453 | struct dst_entry *iter; |
454 | 454 | ||
455 | for (iter = dst; iter != NULL; iter = iter->child) { | 455 | for (iter = dst; iter != NULL; iter = xfrm_dst_child(iter)) { |
456 | struct xfrm_state *x = iter->xfrm; | 456 | struct xfrm_state *x = iter->xfrm; |
457 | 457 | ||
458 | if (x && selinux_authorizable_xfrm(x)) | 458 | if (x && selinux_authorizable_xfrm(x)) |