mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]>
This commit is contained in:
parent
071fb37ec4
commit
b92cf4aab8
8 changed files with 26 additions and 15 deletions
|
|
@ -452,7 +452,7 @@ int selinux_xfrm_postroute_last(u32 sk_sid, struct sk_buff *skb,
|
|||
if (dst) {
|
||||
struct dst_entry *iter;
|
||||
|
||||
for (iter = dst; iter != NULL; iter = iter->child) {
|
||||
for (iter = dst; iter != NULL; iter = xfrm_dst_child(iter)) {
|
||||
struct xfrm_state *x = iter->xfrm;
|
||||
|
||||
if (x && selinux_authorizable_xfrm(x))
|
||||
|
|
|
|||
Loading…
Reference in a new issue