diff options
author | Paul Moore <pmoore@redhat.com> | 2013-11-26 23:32:55 +0100 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-11-26 23:32:55 +0100 |
commit | dd0a11815a339d6deeea8357574f8126a8404c92 (patch) | |
tree | c3c743ac6323e1caf9e987d6946cc4b2333a8256 /security/selinux/include/xfrm.h | |
parent | selinux: correct locking in selinux_netlbl_socket_connect) (diff) | |
parent | Linux 3.12 (diff) | |
download | linux-dd0a11815a339d6deeea8357574f8126a8404c92.tar.xz linux-dd0a11815a339d6deeea8357574f8126a8404c92.zip |
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); static inline void selinux_xfrm_notify_policyload(void) { + struct net *net; + atomic_inc(&flow_cache_genid); - rt_genid_bump(&init_net); + rtnl_lock(); + for_each_net(net) + rt_genid_bump_all(net); + rtnl_unlock(); } #else static inline int selinux_xfrm_enabled(void) |