Revision 474ff2600889e16280dbc6ada8bfecb216169a70 authored by Maciej Żenczykowski on 22 September 2018, 08:34:01 UTC, committed by David S. Miller on 23 September 2018, 00:11:26 UTC
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>
1 parent 8360ed6
File | Mode | Size |
---|---|---|
ib.h | -rw-r--r-- | 3.3 KB |
ib_addr.h | -rw-r--r-- | 8.9 KB |
ib_cache.h | -rw-r--r-- | 5.1 KB |
ib_cm.h | -rw-r--r-- | 19.3 KB |
ib_fmr_pool.h | -rw-r--r-- | 3.4 KB |
ib_hdrs.h | -rw-r--r-- | 8.6 KB |
ib_mad.h | -rw-r--r-- | 29.2 KB |
ib_marshall.h | -rw-r--r-- | 2.0 KB |
ib_pack.h | -rw-r--r-- | 9.0 KB |
ib_pma.h | -rw-r--r-- | 5.4 KB |
ib_sa.h | -rw-r--r-- | 21.4 KB |
ib_smi.h | -rw-r--r-- | 5.5 KB |
ib_umem.h | -rw-r--r-- | 3.5 KB |
ib_umem_odp.h | -rw-r--r-- | 5.4 KB |
ib_verbs.h | -rw-r--r-- | 118.2 KB |
iw_cm.h | -rw-r--r-- | 8.6 KB |
iw_portmap.h | -rw-r--r-- | 7.5 KB |
mr_pool.h | -rw-r--r-- | 954 bytes |
opa_addr.h | -rw-r--r-- | 4.4 KB |
opa_port_info.h | -rw-r--r-- | 14.8 KB |
opa_smi.h | -rw-r--r-- | 4.3 KB |
opa_vnic.h | -rw-r--r-- | 4.0 KB |
rdma_cm.h | -rw-r--r-- | 14.9 KB |
rdma_cm_ib.h | -rw-r--r-- | 2.1 KB |
rdma_netlink.h | -rw-r--r-- | 3.3 KB |
rdma_vt.h | -rw-r--r-- | 15.9 KB |
rdmavt_cq.h | -rw-r--r-- | 3.4 KB |
rdmavt_mr.h | -rw-r--r-- | 6.0 KB |
rdmavt_qp.h | -rw-r--r-- | 21.4 KB |
restrack.h | -rw-r--r-- | 4.7 KB |
rw.h | -rw-r--r-- | 2.8 KB |
uverbs_ioctl.h | -rw-r--r-- | 19.2 KB |
uverbs_named_ioctl.h | -rw-r--r-- | 6.4 KB |
uverbs_std_types.h | -rw-r--r-- | 4.9 KB |
uverbs_types.h | -rw-r--r-- | 6.4 KB |
Computing file changes ...