Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754122AbYK0BE1 (ORCPT ); Wed, 26 Nov 2008 20:04:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752095AbYK0BER (ORCPT ); Wed, 26 Nov 2008 20:04:17 -0500 Received: from wavehammer.waldi.eu.org ([82.139.201.20]:42087 "EHLO wavehammer.waldi.eu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750996AbYK0BER (ORCPT ); Wed, 26 Nov 2008 20:04:17 -0500 X-Greylist: delayed 411 seconds by postgrey-1.27 at vger.kernel.org; Wed, 26 Nov 2008 20:04:16 EST Date: Thu, 27 Nov 2008 02:07:53 +0100 From: Bastian Blank To: Sukadev Bhattiprolu Cc: oleg@redhat.com, ebiederm@xmission.com, roland@redhat.com, containers@lists.osdl.org, linux-kernel@vger.kernel.org, xemul@openvz.org Subject: Re: [RFC][PATCH 4/5] Protect cinit from fatal signals Message-ID: <20081127010753.GB13545@wavehammer.waldi.eu.org> Mail-Followup-To: Bastian Blank , Sukadev Bhattiprolu , oleg@redhat.com, ebiederm@xmission.com, roland@redhat.com, containers@lists.osdl.org, linux-kernel@vger.kernel.org, xemul@openvz.org References: <20081126034242.GA23120@us.ibm.com> <20081126034634.GD23238@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20081126034634.GD23238@us.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 26 On Tue, Nov 25, 2008 at 07:46:34PM -0800, Sukadev Bhattiprolu wrote: > To protect container-init from fatal signals, set SIGNAL_UNKILLABLE but > clear it if it receives SIGKILL from parent namespace - so it is still > killable from ancestor namespace. This sounds like a workaround. > Note that container-init is still somewhat special compared to 'normal > processes' - unhandled fatal signals like SIGUSR1 to a container-init > are dropped even if they are from ancestor namespace. SIGKILL from an > ancestor namespace is the only reliable way to kill a container-init. It sounds not right to make this special case for a "normal" process. However, no idea how to do this better. Bastian -- The heart is not a logical organ. -- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/