summaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2018-09-22 10:34:01 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-23 02:11:26 +0200
commit474ff2600889e16280dbc6ada8bfecb216169a70 (patch)
tree9c85a5ceb0482e6f98751ecb4b9ae7f29427bde0 /net/tipc
parentRDS: IB: Use DEFINE_PER_CPU_SHARED_ALIGNED for rds_ib_stats (diff)
downloadlinux-474ff2600889e16280dbc6ada8bfecb216169a70.tar.xz
linux-474ff2600889e16280dbc6ada8bfecb216169a70.zip
net-ethtool: ETHTOOL_GUFO did not and should not require CAP_NET_ADMIN
So it should not fail with EPERM even though it is no longer implemented... This is a fix for: (userns)$ egrep ^Cap /proc/self/status CapInh: 0000003fffffffff CapPrm: 0000003fffffffff CapEff: 0000003fffffffff CapBnd: 0000003fffffffff CapAmb: 0000003fffffffff (userns)$ tcpdump -i usb_rndis0 tcpdump: WARNING: usb_rndis0: SIOCETHTOOL(ETHTOOL_GUFO) ioctl failed: Operation not permitted Warning: Kernel filter failed: Bad file descriptor tcpdump: can't remove kernel filter: Bad file descriptor With this change it returns EOPNOTSUPP instead of EPERM. See also https://github.com/the-tcpdump-group/libpcap/issues/689 Fixes: 08a00fea6de2 "net: Remove references to NETIF_F_UFO from ethtool." Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Maciej Żenczykowski <maze@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions