Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps

From: Hugh Dickins
Date: Sun Sep 24 2006 - 05:18:47 EST

On Sun, 24 Sep 2006, Stas Sergeev wrote:
> Alan Cox wrote:
> > Agreed mprotect should also be fixed.
> Since "noexec" was already rendered useless - yes.
> Before, people could use it and hope the binaries
> won't get executed (and if it was possible to execute
> them by invoking directly, then could have
> been fixed). Now the only possibility is to not use the
> "noexec" at all.
> So does that add to security or substract?..

I'm very puzzled. The intention of "noexec" is to prevent execution
of files on that mount. You're saying it's useless because it's
preventing execution of files on that mount? It seems to me that
you simply have a mount where "noexec" presents more problems than
it solves: so don't use it there. That doesn't mean it's useless:
not every mmap involves PROT_EXEC, not every mount demands execution.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at