Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761045AbYCFMZE (ORCPT ); Thu, 6 Mar 2008 07:25:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753683AbYCFMYt (ORCPT ); Thu, 6 Mar 2008 07:24:49 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:34418 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753939AbYCFMYs (ORCPT ); Thu, 6 Mar 2008 07:24:48 -0500 Date: Thu, 6 Mar 2008 07:24:40 -0500 From: Christoph Hellwig To: Pavel Emelyanov Cc: Andrew Morton , David Miller , Linux Kernel Mailing List , Linux Netdev List , "Eric W. Biederman" , "Paul E. McKenney" Subject: Re: [PATCH] Make /proc/net a symlink on /proc/self/net (v2) Message-ID: <20080306122440.GA28561@infradead.org> References: <47CFB6CA.8090001@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47CFB6CA.8090001@openvz.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 22 On Thu, Mar 06, 2008 at 12:18:02PM +0300, Pavel Emelyanov wrote: > Current /proc/net is done with so called "shadows", but current > implementation is broken and has little chances to get fixed. > > The problem is that dentries subtree of /proc/net directory has > fancy revalidation rules to make processes living in different > net namespaces see different entries in /proc/net subtree, but > currently, tasks see in the /proc/net subdir the contents of any > other namespace, depending on who opened the file first. > > The proposed fix is to turn /proc/net into a symlink, which points > to /proc/self/net, which in turn shows what previously was in > /proc/net - the network-related info, from the net namespace the > appropriate task lives in. Yes, that's a much better way to get this functionality. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/