Commit ee8372dd1989287c5eedb69d44bac43f69e496f1
Committed by
David S. Miller
1 parent
b42664f898
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff
net/xfrm/xfrm_policy.c
... | ... | @@ -585,6 +585,7 @@ |
585 | 585 | xfrm_pol_hold(policy); |
586 | 586 | net->xfrm.policy_count[dir]++; |
587 | 587 | atomic_inc(&flow_cache_genid); |
588 | + rt_genid_bump(net); | |
588 | 589 | if (delpol) |
589 | 590 | __xfrm_policy_unlink(delpol, dir); |
590 | 591 | policy->index = delpol ? delpol->index : xfrm_gen_index(net, dir); |
security/selinux/include/xfrm.h