From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755759Ab0IWQcn (ORCPT ); Thu, 23 Sep 2010 12:32:43 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:48118 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755676Ab0IWQcl (ORCPT ); Thu, 23 Sep 2010 12:32:41 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: David Lamparter Cc: linux-kernel@vger.kernel.org, Linux Containers , netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, jamal , Daniel Lezcano , Linus Torvalds , Michael Kerrisk , Ulrich Drepper , Al Viro , David Miller , "Serge E. Hallyn" , Pavel Emelyanov , Pavel Emelyanov , Ben Greear , Matt Helsley , Jonathan Corbet , Sukadev Bhattiprolu , Jan Engelhardt , Patrick McHardy References: <20100923151853.GC1160234@jupiter.n2.diac24.net> Date: Thu, 23 Sep 2010 09:32:29 -0700 In-Reply-To: <20100923151853.GC1160234@jupiter.n2.diac24.net> (David Lamparter's message of "Thu, 23 Sep 2010 17:18:53 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-XM-SPF: eid=;;;mid=;;;hst=in01.mta.xmission.com;;;ip=98.207.157.188;;;frm=ebiederm@xmission.com;;;spf=neutral X-SA-Exim-Connect-IP: 98.207.157.188 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 1.5 TR_Symld_Words too many words that have symbols inside * 0.0 T_TM2_M_HEADER_IN_MSG BODY: T_TM2_M_HEADER_IN_MSG * -3.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] * 0.5 XM_Body_Dirty_Words Contains a dirty word * 0.4 UNTRUSTED_Relay Comes from a non-trusted relay X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;David Lamparter X-Spam-Relay-Country: Subject: Re: [ABI REVIEW][PATCH 0/8] Namespace file descriptors X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Fri, 06 Aug 2010 16:31:04 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Lamparter writes: > On Thu, Sep 23, 2010 at 01:45:04AM -0700, Eric W. Biederman wrote: >> Introduce file for manipulating namespaces and related syscalls. >> files: >> /proc/self/ns/ > > As feedback from using network namespaces extensively in more or less > production setups, I would like to make a request/suggestion: there > needs to be a way to enumerate network namespaces independent from > by-pid access. > > At several occasions, I was left with either some runaway daemon which > kept the namespace alive. To describe this a little more graphically: > I found no other way than doing a > md5sum /proc/*/net/if_inet6 | sort | uniq -c -w 32 > to find out which runaway to kill to terminate the namespace. > > This makes network namespaces particularly cumbersome to use without PID > namespaces. While I agree that a large part of the users - namely lxc - > will use them together, network namespaces without pidns are very > interesting for routing applications implementing VRFs. > > Is it possible to add some kind of "all namespaces" list, optimally > giving an opportunity to open() exactly this file descriptor that you > get from /proc//ns/net? > > Also, is it possible to extend that file descriptor to have an > "get all pids" ioctl, > ...or, wait, maybe have /proc/...ns/proc/ symlink? > > (This obviously isn't fully thought to the end, please pick up...) Maybe. I can understand the pain. Is the problem you are facing you are shutting down a vrf and you want to make certain nothing is using it any longer? Eric