lkml.org 
[lkml]   [2006]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
On Wed, Oct 04, 2006 at 03:17:59AM +0000, David Wagner wrote:
> To be honest, I still don't think you've answered Arjan's question. Ok,
> so you say it is not a library and not a binary. So what is it that you
> are maping in as executable, and why do you think it is reasonable to
> ask the Linux kernel to allow you to execute it, if it lives on a noexec
> partition?

He mentioned UML as being one thing affected by this. In this case, you
can think of it as generating code in a piece of shared memory and
then executing it. In reality, the code is read from disk rather than
being generated internally, and it's executed in a different process,
so it needs to be MAP_SHARED.

Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-04 15:47    [W:0.221 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site