From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cedric Le Goater Subject: Re: [RFC][PATCH] ns: Syscalls for better namespace sharing control. Date: Tue, 02 Mar 2010 14:10:06 +0100 Message-ID: <4B8D0E2E.6020205@free.fr> References: <4B4F24AC.70105@trash.net> <1266931623.3973.643.camel@bigi> <1266934817.3973.654.camel@bigi> <1266966581.3973.675.camel@bigi> <4B883987.6090408@parallels.com> <4B883E6F.1060907@parallels.com> <4B88D80A.8010701@parallels.com> <4B88E431.6040609@parallels.com> <4B894564.7080104@parallels.com> <4B89727C.9040602@parallels.com> <4B8AE8C1.1030305@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Daniel Lezcano , Pavel Emelyanov , Linux Netdev List , containers@lists.linux-foundation.org, Netfilter Development Mailinglist , Ben Greear To: "Eric W. Biederman" Return-path: Received: from mtagate3.uk.ibm.com ([194.196.100.163]:39983 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752718Ab0CBNKK (ORCPT ); Tue, 2 Mar 2010 08:10:10 -0500 In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On 03/01/2010 10:42 PM, Eric W. Biederman wrote: > I am of two mind about my patches. Right now they are a brilliant > proof of concept that we can name namespaces without needing a > namespace for the names of namespaces, and start to be a practical > solution to the join problem. At the same time, I'm not certain > I like a solution that requires yet more syscalls so I ask myself > is there not yet a simpler way. thinking aloud, what if you made the nsproxy a vfs_inode ? we could then mount the nsfs to do all sorts of fs operations on the object, like notifying easily its deletion. we would need to find a meaningful name, probably the inode number. one syscall (nsfd) would be required to get the nsproxy of a task (pid). you can't guess that from an inode number. C.