mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
net: maintain namespace isolation between vlan and real device
In the vlan and macvlan drivers, the start_xmit function forwards data to the dev_queue_xmit function for another device, which may potentially belong to a different namespace. To make sure that classification stays within a single namespace, this resets the potentially critical fields. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6884b348ed
commit
8a83a00b07
4 changed files with 42 additions and 6 deletions
|
|
@ -322,7 +322,7 @@ static netdev_tx_t vlan_dev_hard_start_xmit(struct sk_buff *skb,
|
|||
}
|
||||
|
||||
|
||||
skb->dev = vlan_dev_info(dev)->real_dev;
|
||||
skb_set_dev(skb, vlan_dev_info(dev)->real_dev);
|
||||
len = skb->len;
|
||||
ret = dev_queue_xmit(skb);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue