From: | pageexec@××××××××.hu | ||
---|---|---|---|
To: | gentoo-hardened@l.g.o | ||
Subject: | Re: [gentoo-hardened] NX bit on VIA C7 | ||
Date: | Wed, 02 May 2007 20:29:03 | ||
Message-Id: | 46391032.8076.1F0EB15@pageexec.freemail.hu | ||
In Reply to: | Re: [gentoo-hardened] NX bit on VIA C7 by Philipp Riegger |
1 | On 2 May 2007 at 23:16, Philipp Riegger wrote: |
2 | |
3 | > /*Mprotect it NX*/ |
4 | > mprotect( (void*)(((unsigned long)test_func) & ~(getpagesize |
5 | |
6 | if you have PaX/MPROTECT enabled (i think -hardened does that ;), |
7 | then the above mprotect will fail (you can strace it to see it live) |
8 | and the .so text section remains executable - it's by design, and |
9 | the test is simply wrong. |
10 | |
11 | -- |
12 | gentoo-hardened@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-hardened] NX bit on VIA C7 | Philipp Riegger <lists@××××××××××××.de> |