[Devel] Re: [PATCH 3/3] Masquerade sender and limit system-wide signals
Oleg Nesterov
oleg at tv-sign.ru
Thu Aug 30 00:24:15 PDT 2007
On 08/29, sukadev at us.ibm.com wrote:
>
> +static void masquerade_sender(struct task_struct *t, struct sigqueue *q)
> +{
> + /*
> + * If the sender does not have a pid_t in the receiver's active
> + * pid namespace, set si_pid to 0 and pretend signal originated
> + * from the kernel.
> + */
> + if (!pid_ns_equal(t)) {
> + q->info.si_pid = 0;
> + q->info.si_code = SI_KERNEL;
> + }
Just curious, shouldn't we also clear si_uid ?
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