From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 15 20:25:55 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 93DC4106564A for ; Tue, 15 Jun 2010 20:25:55 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D83CB8FC14 for ; Tue, 15 Jun 2010 20:25:54 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id XAA04470; Tue, 15 Jun 2010 23:25:12 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1OOch6-000DSL-5L; Tue, 15 Jun 2010 23:25:12 +0300 Message-ID: <4C17E1A7.90307@icyb.net.ua> Date: Tue, 15 Jun 2010 23:25:11 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.24 (X11/20100603) MIME-Version: 1.0 To: Boyko Yordanov References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org 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: Tue, 15 Jun 2010 20:25:55 -0000 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? -- Andriy Gapon