Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757436AbYJVUbY (ORCPT ); Wed, 22 Oct 2008 16:31:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753862AbYJVUa5 (ORCPT ); Wed, 22 Oct 2008 16:30:57 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:35772 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753393AbYJVUa4 (ORCPT ); Wed, 22 Oct 2008 16:30:56 -0400 Date: Wed, 22 Oct 2008 15:30:45 -0500 From: "Serge E. Hallyn" To: "Eric W. Biederman" Cc: Benjamin Thery , netdev , Dave Miller , Greg Kroah-Hartman , Al Viro , Daniel Lezcano , linux-kernel@vger.kernel.org, Tejun Heo , Denis Lunev , Linux Containers Subject: Re: [PATCH 0/4][RFC] netns: sysfs: add a netns suffix to net device sysfs entries Message-ID: <20081022203045.GA4633@us.ibm.com> References: <20081022152144.351965414@theryb.frec.bull.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 37 Quoting Eric W. Biederman (ebiederm@xmission.com): > Benjamin Thery writes: > > > Support for network namespaces in mainline is pretty complete for > > some time now, but there is still this issue with sysfs that prevents > > more people to use it easily. > > Ben your patchset is completely inappropriate. > > Temporarily adding elements to the ABI that we intend to remove > is not a proper solution to this problem. > > That user space visible ida you add is a namespace identifier that breaks > nested containers and migration. It is very very very wrong. I disagree (not surprising :) completely. The well-known userspace tools (ifconfig, ip, etc) will not see the lo@1, they'll see lo. Userspace in a container can either umount /sys completely, or do mount -t tmpfs none /sys/class/net mount --bind /sys/devices/virtual/net/lo@1 /sys/class/net/lo if they really want to, in which case only their view of /sys/devices/virtual/net would be different. Eric, would you hate this less if it was under some CONFIG_SYSFS_NETNS_HACK config variable? -serge -- 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/