Skip to contentSkip to conversation

net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS

PATCH In review Miroslav Lichvar 3 participants 4 messages Nov 24, 2016 – Dec 26, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/core/ethtool.c | 1 +
 1 file changed, 1 insertion(+)
net/core/ethtool.c +1 -0
index 9774898..047a175 100644
@@ -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))
Signature · 1 line
2.9.3
#2 lore raw
In reply to Miroslav Lichvar

❦ 24 novembre 2016 10:55 +0100, Miroslav Lichvar <[email protected]> :

Quoted 3 lines

The ETHTOOL_GLINKSETTINGS command is deprecating the ETHTOOL_GSET command and likewise it shouldn't require the CAP_NET_ADMIN capability.

Could this patch be pushed to stable branches too?

Signature · 2 lines
Each module should do one thing well.
            - The Elements of Programming Style (Kernighan & Plauger)
maintainer
#3 lore raw

From: Vincent Bernat <[email protected]>
Date: Sun, 25 Dec 2016 08:44:40 +0100

Quoted 7 lines

❦ 24 novembre 2016 10:55 +0100, Miroslav Lichvar <[email protected]> :

Quoted 3 lines

The ETHTOOL_GLINKSETTINGS command is deprecating the ETHTOOL_GSET command and likewise it shouldn't require the CAP_NET_ADMIN capability.

Could this patch be pushed to stable branches too?

Sure, queued up.