Re: maps2-add-proc-pid-pagemap-interface.patch

From: Rusty Russell
Date: Tue Jul 10 2007 - 03:01:05 EST


On Tue, 2007-07-10 at 01:27 -0500, Matt Mackall wrote:
> On Tue, Jul 10, 2007 at 02:28:50PM +1000, Rusty Russell wrote:
> > I don't think normal ptraces get cut on exec, so I'm not sure why this
> > should be different.
>
> They absolutely do, if UID changes. Consider ptracing a shell
> launching a setuid binary.

No, ptraced processes don't change uid on execing a setuid binary.
Which works, but isn't what you want 8(

> For something more closely analogous, consider opening /proc/pid/mem
> on the same shell...

Ah, now I see where you got this from. OK, but can I have a comment
please?

Thanks!
Rusty.

-
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/