ethtool: allow ETHTOOL_GSSET_INFO for users
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sun, 22 Jan 2012 00:20:40 +0000 (00:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2012 04:41:05 +0000 (23:41 -0500)
Allow ETHTOOL_GSSET_INFO ethtool ioctl() for unprivileged users.
ETHTOOL_GSTRINGS is already allowed, but is unusable without this one.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c

index 921aa2b..369b418 100644 (file)
@@ -1311,6 +1311,7 @@ int dev_ethtool(struct net *net, struct ifreq *ifr)
        case ETHTOOL_GRXCSUM:
        case ETHTOOL_GTXCSUM:
        case ETHTOOL_GSG:
+       case ETHTOOL_GSSET_INFO:
        case ETHTOOL_GSTRINGS:
        case ETHTOOL_GTSO:
        case ETHTOOL_GPERMADDR: