diff options
author | Matthew Thode <mthode@mthode.org> | 2015-02-18 01:31:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-22 03:45:25 +0100 |
commit | a4176a9391868bfa87705bcd2e3b49e9b9dd2996 (patch) | |
tree | 03d617339ea5e540b5ca5951b2654efd55d44251 /net | |
parent | net: dsa: bcm_sf2: fix 64-bits register reads (diff) | |
download | linux-a4176a9391868bfa87705bcd2e3b49e9b9dd2996.tar.xz linux-a4176a9391868bfa87705bcd2e3b49e9b9dd2996.zip |
net: reject creation of netdev names with colons
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 8f9710c62e20..962ee9d71964 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -946,7 +946,7 @@ bool dev_valid_name(const char *name) return false; while (*name) { - if (*name == '/' || isspace(*name)) + if (*name == '/' || *name == ':' || isspace(*name)) return false; name++; } |