linux-stable/net/8021q
Hangbin Liu e384060707 vlan: disable SIOCSHWTSTAMP in container
[ Upstream commit 873017af77 ]

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: a6111d3c93 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-16 19:41:30 +02:00
..
Kconfig 8021q: update description 2014-01-21 17:01:25 -08:00
Makefile net: remove blank lines at end of file 2018-07-24 14:10:43 -07:00
vlan.c Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-07-03 10:29:26 +09:00
vlan.h vlan: Add extack messages for link create 2018-05-17 17:08:55 -04:00
vlan_core.c vlan: vlan_hw_filter_capable() can be static 2018-03-31 23:20:48 -04:00
vlan_dev.c vlan: disable SIOCSHWTSTAMP in container 2019-05-16 19:41:30 +02:00
vlan_gvrp.c net: vlan: prepare for 802.1ad support 2013-04-19 14:45:27 -04:00
vlan_mvrp.c net: vlan: prepare for 802.1ad support 2013-04-19 14:45:27 -04:00
vlan_netlink.c vlan: Add extack messages for link create 2018-05-17 17:08:55 -04:00
vlanproc.c proc: introduce proc_create_net{,_data} 2018-05-16 07:24:30 +02:00
vlanproc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00