From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vadim Kochan Subject: Re: [PATCH iproute2 3/3] ip netns: Delete all netns Date: Wed, 7 Jan 2015 20:11:12 +0200 Message-ID: <20150107181112.GA24241@angus-think.lan> References: <1420628662-9930-1-git-send-email-vadim4j@gmail.com> <1420628662-9930-4-git-send-email-vadim4j@gmail.com> <54AD5458.6000400@hp.com> <20150107173640.GA19586@angus-think.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Vadim Kochan , netdev@vger.kernel.org To: Brian Haley Return-path: Received: from mail-lb0-f177.google.com ([209.85.217.177]:49539 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754088AbbAGSVg (ORCPT ); Wed, 7 Jan 2015 13:21:36 -0500 Received: by mail-lb0-f177.google.com with SMTP id b6so1503791lbj.22 for ; Wed, 07 Jan 2015 10:21:34 -0800 (PST) Content-Disposition: inline In-Reply-To: <20150107173640.GA19586@angus-think.lan> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jan 07, 2015 at 07:36:40PM +0200, Vadim Kochan wrote: > On Wed, Jan 07, 2015 at 10:44:24AM -0500, Brian Haley wrote: > > On 01/07/2015 06:04 AM, Vadim Kochan wrote: > > > From: Vadim Kochan > > > > > > Allow delete all namespace names by: > > > > > > $ ip netns del all > > > > So I can still create a namespace called 'all', but can't exec in it or delete > > it independently with this change. Perhaps you need to block that as well? > > Unless there's some other patch I'm missing? > > > > -Brian > Hm, I did not take it into account ... > I will look if I can find another way ... > > Thanks, what about this ? $ ip netns exec / ip link $ ip netns del / so it make a sense to be as root directory of bound ns names in /var/run/netns/ ? what do you think ? Regards,