:: Shashank.net :: Personal Web

  • Increase font size
  • Default font size
  • Decrease font size
Home Articles Mod_Security :: How To

Kernel Compile with Grsecurity Patch

E-mail Print PDF
User Rating: / 1
PoorBest 

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.

The new kernel and new patch is out. I would be updating this tutorial soon :)

 

 

Search


Who's Online

We have 8 guests online

Statistics

Content View Hits : 12415

Syndication

Top Stories

Top Stories
Yahoo! News