Wednesday, February 23, 2011

Kernel Compile with Grsecurity Patch



Kernel Compile with Grsecurity Patch

This is a tutorial to compile kernel 2.6.11.12 with grsecurity. Works cool specially with exec logging you can trace just any minor activity on your server. Here are the commands I used for the compilation :

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#cd /usr/local/src/
#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.5.tar.bz2
#wget http://grsecurity.net/grsecurity-2.1.11-2.6.24.5-200804211829.patch.gz
#tar xvfj linux-2.6.24.5.tar.bz2
#gunzip grsecurity-2.1.11-2.6.24.5-200804211829.patch.gz
#patch -p0 < grsecurity-2.1.11-2.6.24.5-200804211829.patch.gz
#cd linux-2.6.24.5
#cp /boot/config-'uname -r' .config
#make menuconfig
#make
#make modules_install
#make install
#grubby --bootloader-probe
#pico /etc/grub.conf
#grub-install /dev/hda
#reboot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Try at your own risk :D . Best of luck. :)


No comments:

Post a Comment