summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-09-29 00:34:05 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-29 03:03:12 +0200
commit6fbe59b9569b2c8d5522d182263935c6c86fc40a (patch)
treeb0218a3a68f66c380bc3ee367276bdc3829c9ed8 /net
parent[Bluetooth]: Fix section mismatch of bt_sysfs_cleanup() (diff)
downloadlinux-6fbe59b9569b2c8d5522d182263935c6c86fc40a.tar.xz
linux-6fbe59b9569b2c8d5522d182263935c6c86fc40a.zip
[ETHTOOL]: Remove some entries from non-root command list.
GWOL might provide passwords GSET, GLINK, and GSTATS might poke the hardware Based upon feedback from Jeff Garzik. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/ethtool.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index 120786a196d0..87dc556fd9d6 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -817,11 +817,8 @@ int dev_ethtool(struct ifreq *ifr)
/* Allow some commands to be done by anyone */
switch(ethcmd) {
- case ETHTOOL_GSET:
case ETHTOOL_GDRVINFO:
- case ETHTOOL_GWOL:
case ETHTOOL_GMSGLVL:
- case ETHTOOL_GLINK:
case ETHTOOL_GCOALESCE:
case ETHTOOL_GRINGPARAM:
case ETHTOOL_GPAUSEPARAM:
@@ -829,7 +826,6 @@ int dev_ethtool(struct ifreq *ifr)
case ETHTOOL_GTXCSUM:
case ETHTOOL_GSG:
case ETHTOOL_GSTRINGS:
- case ETHTOOL_GSTATS:
case ETHTOOL_GTSO:
case ETHTOOL_GPERMADDR:
case ETHTOOL_GUFO: