From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 16 00:22:30 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5F0C106564A for ; Wed, 16 Jun 2010 00:22:30 +0000 (UTC) (envelope-from julian@elischer.org) Received: from out-0.mx.aerioconnect.net (out-0-33.mx.aerioconnect.net [216.240.47.93]) by mx1.freebsd.org (Postfix) with ESMTP id C7DFB8FC15 for ; Wed, 16 Jun 2010 00:22:30 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o5G0M7PL013729; Tue, 15 Jun 2010 17:22:07 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 95BBC2D6011; Tue, 15 Jun 2010 17:22:06 -0700 (PDT) Message-ID: <4C181946.7040405@elischer.org> Date: Tue, 15 Jun 2010 17:22:30 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Andriy Gapon References: <4C17E1A7.90307@icyb.net.ua> In-Reply-To: <4C17E1A7.90307@icyb.net.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: freebsd-hackers@freebsd.org, Boyko Yordanov Subject: Re: CLONE_NEWNS or similar in freebsd? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2010 00:22:31 -0000 On 6/15/10 1:25 PM, Andriy Gapon wrote: > on 15/06/2010 17:42 Boyko Yordanov said the following: >> Hi List, >> >> I have an app that uses linux's clone() syscall (with the CLONE_NEWNS flag). >> I need to migrate this app to freebsd. >> >> Is there similar functionality in freebsd? For what I read fork() and rfork() >> wont do the trick. I need the children to have their own private mount >> namespaces. > > > I am afraid that FreeBSD doesn't have this capability. > There is a single mount namespace per whole system image. > BTW, I am intrigued, in what situations this flag is useful? > See his other email for more detail on what he wants. I have not heard of this before and you are correct in that we do not have this capacity. I have considered giving jails the capacity to have their own 'real /' i.e. have a totally different filesystem name space (not just a chroot). Then when the jail is removed then namespace would disappear. but that's sort of different. Julian