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

2017-07-20 Thread Stephen Hemminger
On Thu, 20 Jul 2017 00:36:32 +0200 Matteo Croce wrote: > v2: reword commit message > > ip netns keeps track of created namespaces with bind mounts named > /var/run/netns/. No input sanitization is done, allowing creation > and > deletion of files relatives to /var/run/netns

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

2017-07-20 Thread Phil Sutter
Hi Matteo, I don't think git-am understands the subject change semantics you use here, so please drop the '(was: ...)' part from it. On Thu, Jul 20, 2017 at 12:36:32AM +0200, Matteo Croce wrote: > v2: reword commit message In my opinion, this belongs to patch meta info (below the three-dashes

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

2017-07-19 Thread Matteo Croce
v2: reword commit message ip netns keeps track of created namespaces with bind mounts named /var/run/netns/. 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