net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS
Subsystems (2)
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
@@ -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
David Miller
maintainerFrom: Miroslav Lichvar <[email protected]>
Date: Thu, 24 Nov 2016 10:55:06 +0100
Quoted 4 lines
The
ETHTOOL_GLINKSETTINGScommand is deprecating theETHTOOL_GSETcommand and likewise it shouldn't require theCAP_NET_ADMINcapability.Signed-off-by Miroslav Lichvar <[email protected]>
Good catch, applied, thanks.
❦ 24 novembre 2016 10:55 +0100, Miroslav Lichvar <[email protected]> :
Quoted 3 lines
The
ETHTOOL_GLINKSETTINGScommand is deprecating theETHTOOL_GSETcommand and likewise it shouldn't require theCAP_NET_ADMINcapability.
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)David Miller
maintainerFrom: 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_GLINKSETTINGScommand is deprecating theETHTOOL_GSETcommand and likewise it shouldn't require theCAP_NET_ADMINcapability.Could this patch be pushed to stable branches too?
Sure, queued up.