diff options
author | Paul Moore <pmoore@redhat.com> | 2013-11-26 17:32:55 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-11-26 17:32:55 -0500 |
commit | dd0a11815a339d6deeea8357574f8126a8404c92 (patch) | |
tree | c3c743ac6323e1caf9e987d6946cc4b2333a8256 /security/selinux/include/xfrm.h | |
parent | 42d64e1add3a1ce8a787116036163b8724362145 (diff) | |
parent | 5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52 (diff) |
Merge tag 'v3.12'
Linux 3.12
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 7605251936f5..0dec76c64cf5 100644 --- a/security/selinux/include/xfrm.h +++ b/security/selinux/include/xfrm.h | |||
@@ -42,8 +42,13 @@ int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall); | |||
42 | 42 | ||
43 | static inline void selinux_xfrm_notify_policyload(void) | 43 | static inline void selinux_xfrm_notify_policyload(void) |
44 | { | 44 | { |
45 | struct net *net; | ||
46 | |||
45 | atomic_inc(&flow_cache_genid); | 47 | atomic_inc(&flow_cache_genid); |
46 | rt_genid_bump(&init_net); | 48 | rtnl_lock(); |
49 | for_each_net(net) | ||
50 | rt_genid_bump_all(net); | ||
51 | rtnl_unlock(); | ||
47 | } | 52 | } |
48 | #else | 53 | #else |
49 | static inline int selinux_xfrm_enabled(void) | 54 | static inline int selinux_xfrm_enabled(void) |