Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # building Kernel 3.2.68 and GrSecurity for Debian Stable
- # @Copyright 2015 - Kaio Rafael (@kaiux)
- mkdir kernel_stable; cd kernel_stable
- wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.68.tar.xz
- wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.68.tar.sign
- wget -c http://grsecurity.net/stable/grsecurity-3.1-3.2.68-201503251805.patch
- wget -c http://grsecurity.net/stable/grsecurity-3.1-3.2.68-201503251805.patch.sig
- xz -d linux-3.2.68.tar.xz
- gpg --verify linux-3.2.68.tar.sign
- gpg: Signature made Fri 06 Mar 2015 02:19:51 PM AMT using RSA key ID 6092693E
- gpg: Cant check signature: public key not found
- gpg --recv-keys 6092693E
- tar -xf linux-3.2.68.tar
- cd linux-3.2.68/
- # from my old compilation .config file; you can choose the debian default kernel as well
- cp /projects/kernels/source-3.2.30/linux-3.2.30/.config .config
- make oldconfig
- patch -p1 < ../grsecurity-3.1-3.2.68-201503251805.patch
- make menuconfig
- # you should enable all GrSecurity following the path:
- # exit and save the modification
- Security Options -> GrSecurity -> Configuration Method - Automatic
- # run this to generate the .deb with kernel files
- fakeroot make deb-pkg
- ls ../linux*.deb
- # I got this as output
- #../linux-firmware-image_3.2.68-grsec-1_amd64.deb ../linux-image-3.2.68-grsec_3.2.68-grsec-1_amd64.deb
- #../linux-headers-3.2.68-grsec_3.2.68-grsec-1_amd64.deb ../linux-libc-dev_3.2.68-grsec-1_amd64.deb
- #http://en.wikibooks.org/wiki/Grsecurity/Configuring_and_Installing_grsecurity
- #http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-building
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement