提交 a4176a93 编写于 作者: M Matthew Thode 提交者: David S. Miller

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: NMatthew Thode <mthode@mthode.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ddede6d5
......@@ -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++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册