diff options
Diffstat (limited to 'security/selinux/include/xfrm.h')
-rw-r--r-- | security/selinux/include/xfrm.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/security/selinux/include/xfrm.h b/security/selinux/include/xfrm.h index 65f67cb0aefb..6713f04e30ba 100644 --- a/security/selinux/include/xfrm.h +++ b/security/selinux/include/xfrm.h | |||
@@ -50,8 +50,13 @@ int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall); | |||
50 | 50 | ||
51 | static inline void selinux_xfrm_notify_policyload(void) | 51 | static inline void selinux_xfrm_notify_policyload(void) |
52 | { | 52 | { |
53 | struct net *net; | ||
54 | |||
53 | atomic_inc(&flow_cache_genid); | 55 | atomic_inc(&flow_cache_genid); |
54 | rt_genid_bump(&init_net); | 56 | rtnl_lock(); |
57 | for_each_net(net) | ||
58 | rt_genid_bump_all(net); | ||
59 | rtnl_unlock(); | ||
55 | } | 60 | } |
56 | #else | 61 | #else |
57 | static inline int selinux_xfrm_enabled(void) | 62 | static inline int selinux_xfrm_enabled(void) |