See:
(In a nutshell)
- Get the latest
kernel-source
package - Get the appropriate config from the configs dir and
cat
that to.config
in your kernel sources dir - Compile the kernel
- Run the appropriate packaging script(s)
- Install the new KSPP kernel package
- Configure LILO and make the initrd image) if necessary
- Profit
The packaging script for the kernel modules requires that you first run make modules_install
and then run the packaging script itself. After that, you can remove the installed modules and install the package.
- There are different branches for different kernel versions, so check the branches for the latest version, as the most recent is not necessarily merged into master.
- You can check that the configurations are correct with kconfig-hardened-check
The following settings are not set:
# This needs userspace support, and will break "regular" distros. See: https://github.com/tych0/huldufolk
CONFIG_STATIC_USERMODEHELPER=y
# Randomize the layout of system structures. This may have dramatic performance impact, so
# use with caution or also use CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE=y
CONFIG_GCC_PLUGIN_RANDSTRUCT=y
# CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE is not set
And also the 32-bit stuff:
CONFIG_COMPAT
CONFIG_IA32_EMULATION
CONFIG_X86_X32
- Linux kernel can be verified with Greg Kroah-Hartman's PGP key 0x38DBBDC86092693E