Skip to content

Commit

Permalink
net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS
Browse files Browse the repository at this point in the history
The ETHTOOL_GLINKSETTINGS command is deprecating the ETHTOOL_GSET
command and likewise it shouldn't require the CAP_NET_ADMIN capability.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
mlichvar authored and davem330 committed Nov 26, 2016
1 parent d876a4d commit 8006f6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2479,6 +2479,7 @@ int dev_ethtool(struct net *net, struct ifreq *ifr)
case ETHTOOL_GET_TS_INFO:
case ETHTOOL_GEEE:
case ETHTOOL_GTUNABLE:
case ETHTOOL_GLINKSETTINGS:
break;
default:
if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
Expand Down

0 comments on commit 8006f6b

Please sign in to comment.