From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: Re: pid namespace bug ? Date: Fri, 7 May 2010 14:30:37 -0700 Message-ID: <20100507213037.GA3305@us.ibm.com> References: <87ljbyh1zv.fsf@tac.ki.iif.hu> <4BE18E01.3090103@free.fr> <87hbml2uf3.fsf@tac.ki.iif.hu> <4BE2A479.3060805@free.fr> <87ocgt12fb.fsf@tac.ki.iif.hu> <4BE322F1.5030500@free.fr> <20100506205233.GA23542@us.ibm.com> <4BE3D4AD.1030705@free.fr> <20100507194426.GB14799@us.ibm.com> <878w7vmnnn.fsf@tac.ki.iif.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <878w7vmnnn.fsf-/U8DR9OPLL8grVaPS+uXcA@public.gmane.org> 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: Ferenc Wagner Cc: Linux Containers List-Id: containers.vger.kernel.org Ferenc Wagner [wferi-eEbw3PyuezQ@public.gmane.org] wrote: | Sukadev Bhattiprolu writes: | | > Daniel Lezcano [daniel.lezcano-GANU6spQydw@public.gmane.org] wrote: | > | >>> Besides a realistic container-init would block such signals, in which case | >>> the complexity in the kernel could be viewed as unnecessary. | >> | >> I am not sure it is good to have the pid 1 immune against signals sent | >> from outside of the container. | > | > cinit is only immune to unhandled signals that terminate/stop the cinit. | > If a handler is defined for SIGINT, a SIGINT from parent-ns will still be | > delivered but a SIGINT from a descendant of cinit will be ignored. Sorry. Bad sentence. Yes, if a handler is defined, the signal will be delivered regardless of sender's namespace. Thanks, Suka