The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: [MAILER-DAEMON@mail.linuxfoundation.org: Undelivered Mail Returned to Sender]
       [not found] ` <CAKiorj6LYYC+rZG5CRKahYuzyXdnGpQJgd4QQUQ9YhHpTV7s=w@mail.gmail.com>
@ 2011-11-10 14:32   ` Serge E. Hallyn
  0 siblings, 0 replies; only message in thread
From: Serge E. Hallyn @ 2011-11-10 14:32 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel, serge, oleg

...
> > Would you prefer something like:
> >
> > +#ifdef CONFIG_USER_NS
> > +static inline void fixup_uid(struct siginfo *info, struct task_struct *t)
> > +{
> > +       if (current_user_ns() == task_cred_xxx(t, user_ns))
> > +               return;
> > +
> > +       if (SI_FROMKERNEL(info))
> > +               return;
> > +
> > +       info->si_uid = user_ns_map_uid(task_cred_xxx(t, user_ns),
> > +                                       current_cred(), info->si_uid);
> > +}
> > +#else
> > +static inline void fixup_uid(struct siginfo *info, struct task_struct *t)
> > +{
> > +               return;
> > +}
> > +#endif
> >
> > ?  It's less sneaky at least.
> 
> Very much.  The current version looks like a bug.

Thanks, I'll switch to that and hopefully resend the set soon.

-serge

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-10 14:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20111109190829.GA26067@sergelap>
     [not found] ` <CAKiorj6LYYC+rZG5CRKahYuzyXdnGpQJgd4QQUQ9YhHpTV7s=w@mail.gmail.com>
2011-11-10 14:32   ` [MAILER-DAEMON@mail.linuxfoundation.org: Undelivered Mail Returned to Sender] Serge E. Hallyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox