User talk:Pietinger/Tutorials/Kernel Hardening with KSPP

Searching the kernel for hidden options
make menuconfig allows hidden options to be displayed. The 'z' key toggles the feature on and off. It works everywhere that 'z' is not a shortcut.

Before 'z' │ ┌─────────────────────────────────────────────────────────────────────┐ │ │ │       General setup  --->                                          │ │ │ │   [*] 64-bit kernel                                                │ │ │ │       Processor type and features  --->                            │ │ │ │       Power management and ACPI options  --->                      │ │ │ │       Bus options (PCI etc.)  --->                                 │ │ │ │       Binary Emulations  --->                                      │ │ │ │   [*] Virtualization  --->                                         │ │ │ │       General architecture-dependent options  --->                 │ │ │ │   [*] Enable loadable module support  --->                         │ │ │ │   [*] Enable the block layer  --->                                 │ │ │ │       Executable file formats  --->                                │ │ │ │       Memory Management options  --->                              │ │ │ │   [*] Networking support  --->                                     │ │ │ │       Device Drivers  --->                                         │ │ │ │       File systems  --->                                           │ │ │ │       Security options  --->                                       │ │ │ │   -*- Cryptographic API  --->                                      │ │ │ │       Library routines  --->                                       │ │ │ │       Kernel hacking  --->                                         │ │ │ │       Gentoo Linux  --->                                           │ │ │ │                                                                    │ │    │ │                                                                     │ │    │ │                                                                     │ │    │ │                                                                     │ │

With 'z' │ ┌─────────────────────────────────────────────────────────────────────┐ │ │ │       General setup  --->                                          │ │ │ │   [*] 64-bit kernel                                                │ │ │ │       Processor type and features  --->                            │ │ │ │       Power management and ACPI options  --->                      │ │ │ │       Bus options (PCI etc.)  --->                                 │ │ │ │       Binary Emulations  --->                                      │ │ │ │   [*] Virtualization  --->                                         │ │ │ │       General architecture-dependent options  --->                 │ │ │ │   [*] Enable loadable module support  --->                         │ │ │ │   [*] Enable the block layer  --->                                 │ │ │ │       Executable file formats  --->                                │ │ │ │       Memory Management options  --->                              │ │ │ │   [*] Networking support  --->                                     │ │ │ │       Device Drivers  --->                                         │ │ │ │       File systems  --->                                           │ │ │ │       Security options  --->                                       │ │ │ │   -*- Cryptographic API  --->                                      │ │ │ │       Library routines  --->                                       │ │ │ │       Kernel hacking  --->                                         │ │ │ │   - - Warn if there's a missing documentation file                 │ │ │ │   - - Warn if there are errors at ABI files                        │ │ │ │       Gentoo Linux  --->                                           │ │

Now the help can be read │ CONFIG_WARN_MISSING_DOCUMENTS:                                          │ │                                                                        │    │ It is not uncommon that a document gets renamed. │   │ This option makes the Kernel to check for missing dependencies,         │ │ warning when something is missing. Works only if the Kernel            │ │ is built from a git tree. and more importantly, the

Depends on: COMPILE_TEST [=n]

Tells what needs to be changed to so that it can be selected.

With hidden symbols displayed, they also appear in search results.