]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: disable SIOCSHWTSTAMP in container
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 9 May 2019 06:55:07 +0000 (14:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 May 2019 16:31:16 +0000 (09:31 -0700)
commit9ee0c73aca68ab5923fc5a91ff681a7a998e4238
treeac2656ca88cd00d3a8ac99891dd6eb1577ce9b0f
parent22dfc33e9b4d3a23c7cb707b51c3637fa36be218
vlan: disable SIOCSHWTSTAMP in container

With NET_ADMIN enabled in container, a normal user could be mapped to
root and is able to change the real device's rx filter via ioctl on
vlan, which would affect the other ptp process on host. Fix it by
disabling SIOCSHWTSTAMP in container.

Fixes: 0ba90768f84f ("vlan: Pass SIOC[SG]HWTSTAMP ioctls to real device")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c