Re: [PATCH 2/2] taskstats: restrict access to user

From: Vasiliy Kulikov
Date: Sat Jul 02 2011 - 03:36:50 EST


On Thu, Jun 30, 2011 at 00:17 +0400, Vasiliy Kulikov wrote:
> On Wed, Jun 29, 2011 at 06:57 +0530, Balbir Singh wrote:
> > On Fri, Jun 24, 2011 at 5:39 PM, Vasiliy Kulikov <segoon@xxxxxxxxxxxx> wrote:
> > > +               task = find_task_by_vpid(s->pid);
> > > +               if (!task || __task_cred(task)->euid != cred->euid) {
>
> If consider this patch for inclusion, it also needs some check for
> the listener root ability. __task_cred(task)->euid == 0 or smth like
> that. But ptrace_task_may_access_current() is better.

So... What to do with this patch? Should I resend it with euid==0 and
rcu optimication, wait for the new ptrace interface or what?


Thanks,

--
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/