[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081112165319.GC14572@us.ibm.com>
Date: Wed, 12 Nov 2008 10:53:19 -0600
From: "Serge E. Hallyn" <serue@...ibm.com>
To: Oleg Nesterov <oleg@...hat.com>
Cc: sukadev@...ux.vnet.ibm.com,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Pavel Emelyanov <xemul@...nvz.org>, daniel@...ac.com,
Nadia Derbey <Nadia.Derbey@...l.net>, clg@...ibm.com,
Containers <containers@...ts.osdl.org>, sukadev@...ibm.com,
linux-kernel@...r.kernel.org
Subject: Re: Signals to cinit
Quoting Oleg Nesterov (oleg@...hat.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists