1 |
On 02.05.2007, at 23:26, pageexec@××××××××.hu 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 |
Ok, i do not know enough about this to understand why this fails and |
12 |
why the test is wrong, but this is the explanation i needed and the |
13 |
end of a long trial and error journey. Thanks a lot. |
14 |
|
15 |
Philipp |
16 |
-- |
17 |
gentoo-hardened@g.o mailing list |