Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932118AbWAQPCW (ORCPT ); Tue, 17 Jan 2006 10:02:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932142AbWAQPAW (ORCPT ); Tue, 17 Jan 2006 10:00:22 -0500 Received: from e3.ny.us.ibm.com ([32.97.182.143]:44513 "EHLO e3.ny.us.ibm.com") by vger.kernel.org with ESMTP id S1751251AbWAQOuc (ORCPT ); Tue, 17 Jan 2006 09:50:32 -0500 Message-Id: <20060117143329.894513000@sergelap> References: <20060117143258.150807000@sergelap> Date: Tue, 17 Jan 2006 08:33:32 -0600 From: Serge Hallyn To: linux-kernel@vger.kernel.org Cc: Hubertus Franke , Cedric Le Goater , Dave Hansen , Serge E Hallyn Subject: RFC [patch 34/34] PID Virtualization pidspace parent : signal behavior Content-Disposition: inline; filename=G8-prohibit-init-kill.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1009 Lines: 25 make sure a process parent of a pidspace discards signals sent from processes in that pidspace. Signed-off-by: Cedric Le Goater --- signal.c | 4 ++++ 1 files changed, 4 insertions(+) Index: linux-2.6.15/kernel/signal.c =================================================================== --- linux-2.6.15.orig/kernel/signal.c 2006-01-17 08:37:09.000000000 -0500 +++ linux-2.6.15/kernel/signal.c 2006-01-17 08:37:10.000000000 -0500 @@ -642,6 +642,10 @@ if (!valid_signal(sig)) return error; error = -EPERM; + + if (task_vpid_ctx(t, current) == 1) + return error; + if ((info == SEND_SIG_NOINFO || (!is_si_special(info) && SI_FROMUSER(info))) && ((sig != SIGCONT) || (current->signal->session != t->signal->session)) -- - 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/