On Tue, 2006-09-26 at 23:46 +0400, Stas Sergeev wrote: > Hi Guys. > > Noone provided a reason for (or even tried to defend) > the fact that PROT_EXEC is rejected by "noexec" even > for MAP_PRIVATE, while, say, PROT_WRITE is *not* rejected > for "ro" filesystem for MAP_PRIVATE. What was argued is > only MAP_SHARED. is it? > - The programs (like AFAIK wine) use MAP_PRIVATE mmaps to > access the windows dlls, which are usually on a "noexec" > fat or ntfs partitions. Wine might be smart enough not to > break but fallback to read(), but this is slower and more > memory-consuming. Some other program may not be that smart > and break. So there is clearly a need for MAP_PRIVATE with > PROT_EXEC on the noexec partitions. but really again you are degrading what noexec means. It now starts to mean "only don't execute a little bit" rather than "deny execute requests".... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: [email protected] (David Wagner)
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- References:
- [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Hugh Dickins <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Hugh Dickins <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Alan Cox <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Alan Cox <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Ulrich Drepper <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Ulrich Drepper <[email protected]>
- Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- From: Stas Sergeev <[email protected]>
- [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- Prev by Date: [patch] mm: fix a race condition under SMC + COW
- Next by Date: Re: [PATCH] Chipset addition for the VIA Southbridge workaround / quirk
- Previous by thread: Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- Next by thread: Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps
- Index(es):