Building Your Own Hardened Kernel

The previous section included information on some of the many different ways to customize the Linux kernel. That is not enough, however. You need to know how to compile that kernel. This section summarizes the steps required to build a custom kernel.

Details frequently vary by distribution. If details are not described in this section, they were already covered earlier in this chapter. These steps include the following:

  1. Install required development tools.

  2. Download and unpack the source code.

  3. Navigate to the directory with the source code.

  4. You may want to make use of an existing configuration file from local configs/subdirectory or a config-* file in the /boot/ directory. Copy this starting configuration file ...

Get Security Strategies in Linux Platforms and Applications, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.