
whats the difference between PAX and grsecurity ? i mean there is a kernel patch to 2.4.25 for PAX and i wish to install it, tho im not sure that the diff between PAX and grsecurity.
Thank you {;-)
PaX provides protection against memory corruption bugs, grsecurity as a whole is a complete security system incorporating PaX (see the features pages on the grsec site for details). that is, in real life deployments you want grsec not PaX alone. there're also other systems now incorporating PaX, such as Adamantix (it provides RSBAC for access control) and Hardened Gentoo (comes with either grsec or very recently SElinux).conflict wrote:whats the difference between PAX and grsecurity ? i mean there is a kernel patch to 2.4.25 for PAX and i wish to install it, tho im not sure that the diff between PAX and grsecurity.
it's included.letrout wrote:1) Do I need the PaX kernel patch or is this code included in the grsecurity patch?
depends on what your userland supports. i take it you're not using the patched binutils therefore you'll need to enable the old CONFIG_PAX_EI_PAX marking support (which was the default for the past year) and use chpax.2) For PaX, do I use the chpax-0.6 package or paxctl-0.2?
your one stop shop for binutils should be http://www.kernel.org/pub/linux/devel/binutils/letrout wrote:I've downloaded the 2.14 source from GNU and the 2.14.90.0.8 patch, but clearly this is the wrong combo. Finally found the 2.14.90.0.8 source with some googling. I'm a bit surprised at how much hunting it took to find that.
correct.thomasko wrote:If I only compile kernel with PT_PAX_FLAGS, all programs that haven't been built with patched binutils won't be protected by default?
not until they get a PT_PAX_FLAGS marking or you also enable the old EI_PAX marking support. for the former, your current option is to recreate the apps with the patched binutils but work is in progress to directly inject this new program header into an ELF file so you can more easily migrate your userland. in my opinion the best migration plan (when you want to switch to PT_PAX_FLAGS at all, that is) is to enable both marking support and use the patched binutils for future compilations (that is, when you're building your userland yourself, it's much easier when a distribution does the work for you, like Hardened Gentoo and maybe Adamantix in the future).And actually they can not be protected under such kernel at all?
i never asked but my bet is that it's out of question, this marking is highly specific to PaX. what distributions do is another question of course, i know that Gentoo has incorporated it already.Is there any chance that upstream developers will accept binutils patch?
i never asked but my bet is that it's out of question, this marking is highly specific to PaX. what distributions do is another question of course, i know that Gentoo has incorporated it already.Is there any chance that upstream developers will accept binutils patch?