Re: [rfc 3/3] prctl: Add PR_SET_MM codes to tune up mm_struct entires

From: Cyrill Gorcunov
Date: Tue Nov 29 2011 - 15:55:55 EST


On Tue, Nov 29, 2011 at 02:49:11PM -0600, Serge Hallyn wrote:
>
> My memory is a bit hazy here, but cryo
> (http://git.sr71.net/?p=cryo-forhallyn.git;a=summary) did also do
> this from userspace. As I recall the one problem we had was ...
> that we couldn't lower the mm_start of the first segment? I think.
> But I bring it up only because the advantage of doing it this way
> was that all of the ptrace protections automatically applied.
>

Thanks for the link Serge, I'll take a look. I think for start_code
we might stick for exactly Elf path -- ie it should be vma with
at least "r-xp" prototipe as mapped by elf path (and restrictions
from Kees's mail should be applied on it as well). Other members
are not that clear for me.
--
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/