User talk:Pietinger/Tutorials/Kernel Hardening with KSPP

From Gentoo Wiki
Jump to:navigation Jump to:search

Searching the kernel for hidden options

Talk status
This discussion is still ongoing.

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.

NeddySeagoon (talk) 22:06, 24 August 2022 (UTC)

I mentioned using "z" already in my other article: "Manual_kernel_configuration" ... as a quote from your forums-post ;-)
But this is not true: "With hidden symbols displayed, they also appear in search results". I searched several times for an hidden option and it was found by / EVEN if "z" was not toggled on. / will find always an option if option exists - independent of hidden or not. You need "z" only to be able to go into <Help> of an hidden option; not to find it.
pietinger 10:20, 25 August 2022 (UTC)