From: Michał Mirosław Date: Sun, 22 Jan 2012 00:20:40 +0000 (+0000) Subject: ethtool: allow ETHTOOL_GSSET_INFO for users X-Git-Tag: v3.0.37~60 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d3a673fb54a4d7f6d8cb4f7e72dac5f91583e6f1;p=karo-tx-linux.git ethtool: allow ETHTOOL_GSSET_INFO for users [ Upstream commit f80400a26a2e8bff541de12834a1134358bb6642 ] 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 Acked-by: Ben Hutchings Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 4fb77049e83d..891b19f2c003 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -1964,6 +1964,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: