aboutsummaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorMatthew Thode <mthode@mthode.org>2015-02-17 18:31:57 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-18 13:31:22 +0100
commitf0bde5010b45ca740b3db4e99fee46f10df23f4b (patch)
treece447c7bc0749537c2a21841c7fc5c4ff8d83cc4 /net/core/dev.c
parent96c65236248aefab6d78b279ca2dc7fd8fa952ef (diff)
downloadlinux-linaro-stable-f0bde5010b45ca740b3db4e99fee46f10df23f4b.tar.gz
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: Matthew Thode <mthode@mthode.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 4ed77d7245c0..f6d8d7fe29ab 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -940,7 +940,7 @@ bool dev_valid_name(const char *name)
return false;
while (*name) {
- if (*name == '/' || isspace(*name))
+ if (*name == '/' || *name == ':' || isspace(*name))
return false;
name++;
}