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

Commit e664c2cc authored by Matthew Thode's avatar Matthew Thode Committed by Sasha Levin
Browse files

net: reject creation of netdev names with colons



[ Upstream commit a4176a9391868bfa87705bcd2e3b49e9b9dd2996 ]

colons are used as a separator in netdev device lookup in dev_ioctl.c

Specific functions are SIOCGIFTXQLEN SIOCETHTOOL SIOCSIFNAME

Signed-off-by: default avatarMatthew Thode <mthode@mthode.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 4946f9d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -943,7 +943,7 @@ bool dev_valid_name(const char *name)
		return false;

	while (*name) {
		if (*name == '/' || isspace(*name))
		if (*name == '/' || *name == ':' || isspace(*name))
			return false;
		name++;
	}