aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 18:34:05 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:03:12 -0400
commit6fbe59b9569b2c8d5522d182263935c6c86fc40a (patch)
treeb0218a3a68f66c380bc3ee367276bdc3829c9ed8 /net/core
parent860e13b5c591f1040b76fff57a6a3d6ca9633983 (diff)
[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/core')
-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)
817 817
818 /* Allow some commands to be done by anyone */ 818 /* Allow some commands to be done by anyone */
819 switch(ethcmd) { 819 switch(ethcmd) {
820 case ETHTOOL_GSET:
821 case ETHTOOL_GDRVINFO: 820 case ETHTOOL_GDRVINFO:
822 case ETHTOOL_GWOL:
823 case ETHTOOL_GMSGLVL: 821 case ETHTOOL_GMSGLVL:
824 case ETHTOOL_GLINK:
825 case ETHTOOL_GCOALESCE: 822 case ETHTOOL_GCOALESCE:
826 case ETHTOOL_GRINGPARAM: 823 case ETHTOOL_GRINGPARAM:
827 case ETHTOOL_GPAUSEPARAM: 824 case ETHTOOL_GPAUSEPARAM:
@@ -829,7 +826,6 @@ int dev_ethtool(struct ifreq *ifr)
829 case ETHTOOL_GTXCSUM: 826 case ETHTOOL_GTXCSUM:
830 case ETHTOOL_GSG: 827 case ETHTOOL_GSG:
831 case ETHTOOL_GSTRINGS: 828 case ETHTOOL_GSTRINGS:
832 case ETHTOOL_GSTATS:
833 case ETHTOOL_GTSO: 829 case ETHTOOL_GTSO:
834 case ETHTOOL_GPERMADDR: 830 case ETHTOOL_GPERMADDR:
835 case ETHTOOL_GUFO: 831 case ETHTOOL_GUFO: