Subject: Re: [PATCH v2] netns: avoid directory traversal (was: ip netns: Make sure netns name is sane)

From: Stephen Hemminger <[email-masked]>
Date: Thu, 20 Jul 2017 17:25:21 -0700

On Thu, 20 Jul 2017 00:36:32 +0200
Matteo Croce <[email-masked]> wrote:

> v2: reword commit message
> 
> ip netns keeps track of created namespaces with bind mounts named
> /var/run/netns/<namespace>. No input sanitization is done, allowing creation and
> deletion of files relatives to /var/run/netns or, if the path is non existent or
> invalid, allows to create "untracked" namespaces (invisible to the tool).
> 
> This commit denies creation or deletion of namespaces with names contaning
> "/" or matching exactly "." or "..".
> 
> Signed-off-by: Matteo Croce <[email-masked]>

Applied. I manually edited the commit description to remove the (was...)
thanks Matteo.