[Devel] Re: [PATCH] 'kill sig -1' must only apply to caller's namespace

Oleg Nesterov oleg at redhat.com
Fri Oct 24 04:06:46 PDT 2008


On 10/23, sukadev at linux.vnet.ibm.com wrote:
>
> --- a/kernel/signal.c
> +++ b/kernel/signal.c
> @@ -1144,7 +1144,8 @@ static int kill_something_info(int sig, struct siginfo *info, pid_t pid)
>  		struct task_struct * p;
>
>  		for_each_process(p) {
> -			if (p->pid > 1 && !same_thread_group(p, current)) {
> +			if (task_pid_vnr(p) > 1 &&
> +					!same_thread_group(p, current)) {

Thanks Sukadev!

Signed-off-by: Oleg Nesterov <oleg at redhat.com>

Oleg.

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list