OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 3/3] Masquerade sender and limit system-wide signals
Re: [PATCH 3/3] Masquerade sender and limit system-wide signals [message #19841 is a reply to message #19830] Thu, 30 August 2007 07:24 Go to previous message
Oleg Nesterov is currently offline  Oleg Nesterov
Messages: 143
Registered: August 2006
Senior Member
On 08/29, sukadev@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@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Previous Topic: [RFC][PATCH 2/3] Signal semantics for /sbin/init
Next Topic: [RFC][PATCH 1/3] Pid ns helpers for signals
Goto Forum:
  


Current Time: Sat Sep 20 23:01:39 GMT 2025

Total time taken to generate the page: 0.05972 seconds