Linux Container Development
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org>
To: sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
Cc: Containers <containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>,
	Pavel Emelianov <xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH 3/3] Masquerade sender and limit system-wide signals
Date: Thu, 30 Aug 2007 11:24:15 +0400	[thread overview]
Message-ID: <20070830072415.GA232@tv-sign.ru> (raw)
In-Reply-To: <20070830062210.GC29340-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

On 08/29, sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org 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.

      parent reply	other threads:[~2007-08-30  7:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-30  6:22 [PATCH 3/3] Masquerade sender and limit system-wide signals sukadev-r/Jw6+rmf7HQT0dZR+AlfA
     [not found] ` <20070830062210.GC29340-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-30  7:24   ` Oleg Nesterov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070830072415.GA232@tv-sign.ru \
    --to=oleg-6lxkizvqkoavjsylp49lxw@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    --cc=xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox