[Devel] Re: Signals to cinit
Serge E. Hallyn
serue at us.ibm.com
Wed Nov 12 08:53:19 PST 2008
Quoting Oleg Nesterov (oleg at 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
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list