]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 24 Nov 2016 09:55:06 +0000 (10:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 01:23:30 +0000 (20:23 -0500)
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>
net/core/ethtool.c

index 977489820eb957098705c9ea1674ed3092a6cfe6..047a1752ece183b2b2affa5bd0e7a08886530b1d 100644 (file)
@@ -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))