Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8006f6bf authored by Miroslav Lichvar's avatar Miroslav Lichvar Committed by David S. Miller
Browse files

net: ethtool: don't require CAP_NET_ADMIN for ETHTOOL_GLINKSETTINGS



The ETHTOOL_GLINKSETTINGS command is deprecating the ETHTOOL_GSET
command and likewise it shouldn't require the CAP_NET_ADMIN capability.

Signed-off-by: default avatarMiroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d876a4d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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))