Gentoo Archives: gentoo-hardened

From: Philipp Riegger <lists@××××××××××××.de>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] NX bit on VIA C7
Date: Wed, 02 May 2007 22:11:28
Message-Id: B89A24BD-0DD5-43CD-BA47-35D3A0827310@anderedomain.de
In Reply to: Re: [gentoo-hardened] NX bit on VIA C7 by pageexec@freemail.hu
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

Replies

Subject Author
[gentoo-hardened] Hardened gcc-4.1.x Peter Hjalmarsson <xake@×××××××××.net>