Re: [PATCH v2 1/2] procfs: make /proc/*/{stack,syscall,personality} 0400

From: Djalal Harouni
Date: Tue Mar 25 2014 - 06:16:08 EST


Hi Alexey,

On Mon, Mar 24, 2014 at 04:41:43PM +0300, Alexey Dobriyan wrote:
> > - ONE("stack", S_IRUGO, proc_pid_stack),
> > + ONE("stack", S_IRUSR, proc_pid_stack),
>
> no love for /proc/*/wchan?

Yes you are right, didn't want to modify lot of things, and I missed that one.

So there is the ptrace check that will just block cases where users do
_not_ play tricks with the fd. I'll send another v3 with that included.

Thanks!

--
Djalal Harouni
http://opendz.org
--
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/