Thread (6 messages) 6 messages, 3 authors, 2015-02-18

Re: [PATCH] colons are invalid characters in netdev names

flat view

From: Matthew Thode <hidden>
Date: 2015-02-18 01:33:38
Also in: lkml

On 02/17/2015 07:28 PM, Stephen Hemminger wrote:
On Tue, 17 Feb 2015 17:15:42 -0600
Matthew Thode [off-list ref] wrote:
quoted
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 <redacted>
What is the exact sequence that causes the problem?
SIOCSIFNAME already strips of colon.
It strips the name one access, not creation.  You can create a dummy
device and not access it, escaping doesn't seem to help.

ip link add name foo:asdasd type dummy
ip link del dev foo:asdasd              # will not be deleted

-- 
Matthew Thode

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help