projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d876a4d
)
net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS
author
Miroslav Lichvar
<mlichvar@redhat.com>
Thu, 24 Nov 2016 09:55:06 +0000
(10:55 +0100)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/core/ethtool.c
b/net/core/ethtool.c
index 977489820eb957098705c9ea1674ed3092a6cfe6..047a1752ece183b2b2affa5bd0e7a08886530b1d 100644
(file)
--- a/
net/core/ethtool.c
+++ b/
net/core/ethtool.c
@@
-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))