From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oren Laadan Subject: Re: [RFC][PATCH] ns: Syscalls for better namespace sharing control. Date: Fri, 26 Feb 2010 16:58:22 -0500 Message-ID: <4B8843FE.4000404@cs.columbia.edu> References: <4B4F24AC.70105@trash.net> <1263481549.23480.24.camel@bigi> <4B4F3A50.1050400@trash.net> <1263490403.23480.109.camel@bigi> <4B50403A.6010507@trash.net> <1263568754.23480.142.camel@bigi> <1266875729.3673.12.camel@bigi> <1266931623.3973.643.camel@bigi> <1266934817.3973.654.camel@bigi> <1266966581.3973.675.camel@bigi> <4B883987.6090408@parallels.com> <4B883E6F.1060907@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Pavel Emelyanov , Ben Greear , Linux Netdev List , containers@lists.linux-foundation.org, Netfilter Development Mailinglist , Daniel Lezcano To: "Eric W. Biederman" Return-path: Received: from brinza.cc.columbia.edu ([128.59.29.8]:57728 "EHLO brinza.cc.columbia.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966357Ab0BZV6k (ORCPT ); Fri, 26 Feb 2010 16:58:40 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Eric W. Biederman wrote: > Pavel Emelyanov writes: > >>>> Yet another set of per-namespace IDs along with CLONE_NEWXXX ones? >>>> I currently have a way to create all namespaces we have with one >>>> syscall. Why don't we have an ability to enter them all with one syscall? >>> The CLONE_NEWXXX series of bits has been an royal pain to work with, >>> and it appears to be unnecessary complications for no gain. >> That's the answer for the "Yet another set..." question. >> How about the "Why don't we have..." one? > > I am not certain which question you are asking: > > Why don't we have an ability to enter all namespaces with one syscall > invocation? That's how I understood the question, and I, too, wonder why not ? By the way, an alternative to using bitmap is to change the prototype of setns() to accept an array of FD's: int setns(int *fds, int nfds); So the process will atomically enter all the namespaces as specified by the FDs. Oren. > > Why don't we have a syscall that allows us to enter every namespace? > > Eric > > _______________________________________________ > Containers mailing list > Containers@lists.linux-foundation.org > https://lists.linux-foundation.org/mailman/listinfo/containers >