diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2012-09-11 00:09:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-18 21:57:03 +0200 |
commit | ee8372dd1989287c5eedb69d44bac43f69e496f1 (patch) | |
tree | 419de8719e0cf610f313345d25b231e376083ebd /security | |
parent | netns: move net->ipv4.rt_genid to net->rt_genid (diff) | |
download | linux-ee8372dd1989287c5eedb69d44bac43f69e496f1.tar.xz linux-ee8372dd1989287c5eedb69d44bac43f69e496f1.zip |
xfrm: invalidate dst on policy insertion/deletion
When a policy is inserted or deleted, all dst should be recalculated.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/include/xfrm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/include/xfrm.h b/security/selinux/include/xfrm.h index c220f314709c..65f67cb0aefb 100644 --- a/security/selinux/include/xfrm.h +++ b/security/selinux/include/xfrm.h @@ -51,6 +51,7 @@ int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall); static inline void selinux_xfrm_notify_policyload(void) { atomic_inc(&flow_cache_genid); + rt_genid_bump(&init_net); } #else static inline int selinux_xfrm_enabled(void) |