Chapter 2. Configuring a Secure and Optimized Kernel

In this chapter, we will discuss the following:

  • Requirements for building and using a kernel
  • Creating a USB boot media
  • Retrieving a kernel source
  • Configuring and building a kernel
  • Installing and booting from a kernel
  • Testing and debugging a kernel
  • Configuring a console for debugging using Netconsole
  • Debugging a kernel on boot

Introduction

For all Linux distributions, including Ubuntu, CentOS, and Fedora, a kernel is vital. It is by default installed for most Linux versions when the OS is installed, hence we generally don't have to compile the kernel. Even when there is a critical update to be installed in the kernel, it can be done using apt-get or yum on the Linux system.

However, there might be few situations ...

Get Practical Linux Security Cookbook 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.