]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: partially enable SIOCSHWTSTAMP in container
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Wed, 15 Mar 2023 15:33:02 +0000 (08:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:18 +0000 (23:03 +0900)
commitcf025c93b4eab1af14d5fd0cfb033f0800ecdd66
treea395b6b39378d0b631e2bc9302368c9085cc5cce
parentdea21ce3ddd58ff72145fa47eafc35ec79b524cf
vlan: partially enable SIOCSHWTSTAMP in container

[ Upstream commit 731b73dba359e3ff00517c13aa0daa82b34ff466 ]

Setting timestamp filter was explicitly disabled on vlan devices in
containers because it might affect other processes on the host. But it's
absolutely legit in case when real device is in the same namespace.

Fixes: 6300f05aea50 ("vlan: disable SIOCSHWTSTAMP in container")
Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/8021q/vlan_dev.c