* 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