On 14/11/07 17:42 +0100, Christian Parpart wrote:
> hi all,
> 
> when executing a really very simple hello world (or let's say: any program)
> on a hardened-sources gentoo host, the application gets killed and i receive
> the following in the logs:
> 
> Nov 14 17:39:02 leibniz PAX: From 192.168.2.230: execution attempt 
>       in: <anonymous mapping>, 4023ac000-403c6e000 4023ac000
> Nov 14 17:39:02 leibniz PAX: terminating task: 
>       /usr/lib64/valgrind/amd64-linux/memcheck(memcheck):13484, 
>       uid/euid: 1002/1002, PC: 00000004023ac008, SP: 00000004023a9d70
> Nov 14 17:39:02 leibniz PAX: bytes at PC: 4c 8b a5 68 02 00 00 
>       4c 8b 6d 20 4c 89 a5 80 02 00 00 4c 89
> Nov 14 17:39:02 leibniz PAX: bytes at SP-8: 0000000000001f80 
>       00000000000186a0 000000003916c0e8 000000003916c0d8 000000003916c0d8 
>       0000000000000000 00000004023a9f80 000000003916c0d8 000000003916cde8 
>       00000000000186a1 0000000000000000
> Nov 14 17:39:02 leibniz grsec: From 192.168.2.230: denied resource overstep 
>       by requesting 4096 for RLIMIT_CORE against limit 0 for 
>       /usr/lib64/valgrind/amd64-linux/memcheck[memcheck:13484] 
>       uid/euid:1002/1002 gid/egid:1005/1005, parent /bin/bash[bash:7907] 
>       uid/euid:1002/1002 gid/egid:1005/1005

That sounds like PAX_MPROTECT (the anonymous memory part especially).
Try disabling it and recompile your kernel. As the PAX options ain't
sysctl-able, that's the only way.

Otherwise you could try marking the executeable with chpax/paxctl.
-- 
[EMAIL PROTECTED] mailing list

Reply via email to