aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_policy.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2019-03-26 13:20:43 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2019-03-27 16:14:05 +0100
commit025c65e119bf58b610549ca359c9ecc5dee6a8d2 (patch)
treeb8a060c8237b6b965b327946043a11e40eae07bc /net/ipv4/xfrm4_policy.c
parentesp4: add length check for UDP encapsulation (diff)
downloadlinux-dev-025c65e119bf58b610549ca359c9ecc5dee6a8d2.tar.xz
linux-dev-025c65e119bf58b610549ca359c9ecc5dee6a8d2.zip
xfrm: Honor original L3 slave device in xfrmi policy lookup
If an xfrmi is associated to a vrf layer 3 master device, xfrm_policy_check() fails after traffic decapsulation. The input interface is replaced by the layer 3 master device, and hence xfrmi_decode_session() can't match the xfrmi anymore to satisfy policy checking. Extend ingress xfrmi lookup to honor the original layer 3 slave device, allowing xfrm interfaces to operate within a vrf domain. Fixes: f203b76d7809 ("xfrm: Add virtual xfrm interfaces") Signed-off-by: Martin Willi <martin@strongswan.org> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions