]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Scrub skb between namespaces
authorJoe Stringer <joestringer@nicira.com>
Fri, 16 Oct 2015 18:08:18 +0000 (11:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2015 05:24:50 +0000 (22:24 -0700)
commit370a35e6e214aa64b43affedd4fd40921dacf8f4
treed57e072326e2c7867556f7f199a41e4b30b8b36f
parentbea841bf50f14bff7db07ae82e1b15cd2c06de09
openvswitch: Scrub skb between namespaces

If OVS receives a packet from another namespace, then the packet should
be scrubbed. However, people have already begun to rely on the behaviour
that skb->mark is preserved across namespaces, so retain this one field.

This is mainly to address information leakage between namespaces when
using OVS internal ports, but by placing it in ovs_vport_receive() it is
more generally applicable, meaning it should not be overlooked if other
port types are allowed to be moved into namespaces in future.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c