From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750718AbWDIKPA (ORCPT ); Sun, 9 Apr 2006 06:15:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750720AbWDIKPA (ORCPT ); Sun, 9 Apr 2006 06:15:00 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:9432 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S1750718AbWDIKPA (ORCPT ); Sun, 9 Apr 2006 06:15:00 -0400 Date: Sun, 9 Apr 2006 11:14:36 +0100 From: Christoph Hellwig To: "Eric W. Biederman" Cc: "Serge E. Hallyn" , linux-kernel@vger.kernel.org, Kirill Korotaev , herbert@13thfloor.at, devel@openvz.org, sam@vilain.net, xemul@sw.ru, James Morris Subject: Re: [PATCH 3/7] uts namespaces: use init_utsname when appropriate Message-ID: <20060409101436.GA20084@infradead.org> Mail-Followup-To: Christoph Hellwig , "Eric W. Biederman" , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, Kirill Korotaev , herbert@13thfloor.at, devel@openvz.org, sam@vilain.net, xemul@sw.ru, James Morris References: <20060407234815.849357768@sergelap> <20060408045206.EAA8E19B8FF@sergelap.hallyn.com> <20060408202701.GA26403@sergelap.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 09, 2006 at 03:44:19AM -0600, Eric W. Biederman wrote: > There are two ways to avoid the associated problems. > - modify daemonize to always use the instance of that > namespace associated with init_task. > - modify all interesting kernel threads to use the > kthread api instead of kernel_thread. Using kthread > makes the kernel threads children of keventd and always > in the initial namespace instance. As such we know > we aren't inside of any user space namespace instance. I've added a deprecation entry for the kernel_thread export and plan to convert all users to the kthread API. Any help on that is of course greatly appreciated.