Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753612AbYKLQxc (ORCPT ); Wed, 12 Nov 2008 11:53:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751368AbYKLQxX (ORCPT ); Wed, 12 Nov 2008 11:53:23 -0500 Received: from e31.co.us.ibm.com ([32.97.110.149]:34513 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751278AbYKLQxW (ORCPT ); Wed, 12 Nov 2008 11:53:22 -0500 Date: Wed, 12 Nov 2008 10:53:19 -0600 From: "Serge E. Hallyn" To: Oleg Nesterov Cc: sukadev@linux.vnet.ibm.com, "Eric W. Biederman" , Pavel Emelyanov , daniel@hozac.com, Nadia Derbey , clg@fr.ibm.com, Containers , sukadev@us.ibm.com, linux-kernel@vger.kernel.org Subject: Re: Signals to cinit Message-ID: <20081112165319.GC14572@us.ibm.com> References: <20081101180505.GA24268@us.ibm.com> <20081110173839.GA11121@redhat.com> <20081110193228.GA15519@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081110193228.GA15519@redhat.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: 1100 Lines: 32 Quoting Oleg Nesterov (oleg@redhat.com): > --- K-IS/kernel/signal.c~T 2008-11-10 19:21:17.000000000 +0100 > +++ K-IS/kernel/signal.c 2008-11-10 20:31:24.000000000 +0100 > @@ -798,11 +798,19 @@ static inline int legacy_queue(struct si > return (sig < SIGRTMIN) && sigismember(&signals->signal, sig); > } > > +#define SIG_FROM_USER INT_MIN /* MSB */ > + > static int send_signal(int sig, struct siginfo *info, struct task_struct *t, > int group) > { > struct sigpending *pending; > struct sigqueue *q; > + int from_ancestor_ns; > + > + from_ancestor_ns = !is_si_special(info) && > + (info->si_signo | SIG_FROM_USER) && I assume you mean '&'? > + /* if t can't see us we are from parent ns */ > + task_pid_nr_ns(current, t->current->nsproxy->pid_ns) <= 0; This doesn't look so bad... (but still looking through followup emails) -serge -- 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/