Skip to content

Commit 8006f6b

Browse files
mlichvardavem330
authored andcommitted
net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS
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>
1 parent d876a4d commit 8006f6b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/core/ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,7 @@ int dev_ethtool(struct net *net, struct ifreq *ifr)
24792479
case ETHTOOL_GET_TS_INFO:
24802480
case ETHTOOL_GEEE:
24812481
case ETHTOOL_GTUNABLE:
2482+
case ETHTOOL_GLINKSETTINGS:
24822483
break;
24832484
default:
24842485
if (!ns_capable(net->user_ns, CAP_NET_ADMIN))

0 commit comments

Comments
 (0)