提交 731b73db 编写于 作者: V Vadim Fedorenko 提交者: David S. Miller

vlan: partially enable SIOCSHWTSTAMP in container

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: 873017af ("vlan: disable SIOCSHWTSTAMP in container")
Signed-off-by: NVadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e05c5181
......@@ -365,7 +365,7 @@ static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
switch (cmd) {
case SIOCSHWTSTAMP:
if (!net_eq(dev_net(dev), &init_net))
if (!net_eq(dev_net(dev), dev_net(real_dev)))
break;
fallthrough;
case SIOCGMIIPHY:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册