Saturday, March 1, 2008

using grsecurity

1. download patch for grsecurity.
  • -naming is: grsecurity-[grsec_version]-[linux_version].patch

2. extract linux-[version]
  • - for gz extensions use
  • tar zxvf path/to/file/linux-[version].tar.gz
  • - for bz2 files
  • tar jxvf path/to file/linux-[version].tar.bz2

3. cd linux-[version]

4. make mrproper

5. make menuconfig

6. apply patch
  • - patch -Naur -i path/to/patch/grsecurity-[grsec_version]-[linux_version].patch
7. compile
  • make dep bzImage modules modules_install
8. copy the kernel
  • cp arch/i386/boot/bzImage /boot/linux-[version]-grsec
9. edit bootloader configuration
bootloader configuration tips
grub legacy VS grub2


links
hlfs