Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753843AbbBQXWU (ORCPT ); Tue, 17 Feb 2015 18:22:20 -0500 Received: from 216-82-208-22.static.grandenetworks.net ([216.82.208.22]:39555 "EHLO mx1.mthode.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751522AbbBQXWT (ORCPT ); Tue, 17 Feb 2015 18:22:19 -0500 X-Greylist: delayed 374 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Feb 2015 18:22:19 EST From: Matthew Thode To: davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Matthew Thode Subject: [PATCH] colons are invalid characters in netdev names Date: Tue, 17 Feb 2015 17:15:42 -0600 Message-Id: <1424214942-17581-1-git-send-email-mthode@mthode.org> X-Mailer: git-send-email 2.0.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 30 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 --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index d030575..e9b6d5a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -942,7 +942,7 @@ bool dev_valid_name(const char *name) return false; if (strlen(name) >= IFNAMSIZ) return false; - if (!strcmp(name, ".") || !strcmp(name, "..")) + if (!strcmp(name, ".") || !strcmp(name, "..") || !strcmp(name, ":")) return false; while (*name) { -- 2.0.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/