From: Oleg Nesterov Subject: Re: [PATCH] Fix capability.c to work with threaded init Date: Fri, 3 Aug 2007 21:29:34 +0400 Message-ID: <20070803172934.GB3783@tv-sign.ru> References: <20070803062610.GB16833@us.ibm.com> <1186159872.18414.391.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1186159872.18414.391.camel@localhost> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Dave Hansen Cc: Containers , Pavel Emelianov List-Id: containers.vger.kernel.org On 08/03, Dave Hansen wrote: > > On Thu, 2007-08-02 at 23:26 -0700, sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: > > > > Callers of is_container_init() should pass in task->group_leader > > to ensure they work with threaded-init. > > Can you explain this in a little more detail? That's a pretty sparse > changelog. Without this change cap_set_all() skips only the main thread of /sbin/init, but we should skip the entire process as the comment states. Oleg.