Heap Randomization issue after re-compile 2.6.24.7
Posted: Thu Jun 26, 2008 3:04 am
i just re-ran the paxtest and now it says the following have no randomization:
All I did was - remove some network stuff that i didn't need & put some into the kernel not as a module - and removed under PAX was Legacy Elf Marking & Elf Header Marking & added chroot protection - Elf Header marking says the following(snippet):
All the rest are the same and I get the above no randomization on heap, etc.. Oh! I also added the extra /proc security and allow only the users to see their own processes, etc.. when I enabled that I also enabled additional restrictions.
Besides the above I didn't enable/disable anything else. Could this be a problem with paxtest not showing the right output or what?
edit: oh and I disabled fair group scheduler.
edit2: I forgot some stuiff I also did: disabled Kernel support for a.out and ECOFF binaries, & something I seem to can't find now- I set a 32 stack something to 25. Now I believe that's all I did.
edit3: the 25 thing was CONFIG_NET_EMATCH_STACK=25 so it was a network/internet thing.
edit4: I disabled the elf flags options to increase security a bit as I didn't use mprotect, etc..but mostly I did not want to control pax stuff via the utilities.
- Code: Select all
Heap randomisation test (ET_EXEC) : No randomisation
Heap randomisation test (ET_DYN) : No randomisation
Main executable randomisation (ET_EXEC) : No randomisation
All I did was - remove some network stuff that i didn't need & put some into the kernel not as a module - and removed under PAX was Legacy Elf Marking & Elf Header Marking & added chroot protection - Elf Header marking says the following(snippet):
- Code: Select all
Enabling this option will allow you to control PaX features on │
│ a per executable basis via the 'paxctl' utility available at │
│ http://pax.grsecurity.net/.
All the rest are the same and I get the above no randomization on heap, etc.. Oh! I also added the extra /proc security and allow only the users to see their own processes, etc.. when I enabled that I also enabled additional restrictions.
Besides the above I didn't enable/disable anything else. Could this be a problem with paxtest not showing the right output or what?
edit: oh and I disabled fair group scheduler.
edit2: I forgot some stuiff I also did: disabled Kernel support for a.out and ECOFF binaries, & something I seem to can't find now- I set a 32 stack something to 25. Now I believe that's all I did.
edit3: the 25 thing was CONFIG_NET_EMATCH_STACK=25 so it was a network/internet thing.
edit4: I disabled the elf flags options to increase security a bit as I didn't use mprotect, etc..but mostly I did not want to control pax stuff via the utilities.