Advertisement
RobertBerger

Untitled

Sep 26th, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. I made a recipe for kconfig-hardened-check-native, copied from the board/qemu config.gz, cmdline.txt, sysctl.txt and ran:
  2.  
  3. $ oe-run-native kconfig-hardened-check-native kernel-hardening-checker -c /workdir/hardening/config.gz -l /workdir/hardening/cmdline.txt -s /workdir/hardening/sysctl.txt
  4. Getting sysroot...
  5. [+] Kconfig file to check: /workdir/hardening/config.gz
  6. [+] Kernel cmdline file to check: /workdir/hardening/cmdline.txt
  7. [+] Sysctl output file to check: /workdir/hardening/sysctl.txt
  8. [+] Detected microarchitecture: X86_64
  9. [+] Detected kernel version: (6, 10, 3)
  10. [+] Detected compiler: GCC 140200
  11. [!] WARNING: cmdline option "console" is found multiple times
  12. =========================================================================================================================
  13. option_name | type |desired_val | decision | reason | check_result
  14. =========================================================================================================================
  15. ...
  16. CONFIG_INIT_ON_ALLOC_DEFAULT_ON |kconfig| y | kspp | self_protection | OK
  17. ...
  18. CONFIG_PROC_KCORE |kconfig| is not set | kspp |cut_attack_surface| OK
  19. ...
  20. CONFIG_SECURITY_DMESG_RESTRICT |kconfig| y | kspp |cut_attack_surface| OK
  21. ...
  22. CONFIG_DEVMEM |kconfig| is not set | kspp |cut_attack_surface| OK
  23. ...
  24. CONFIG_HARDENED_USERCOPY |kconfig| y | kspp | self_protection | OK
  25. ...
  26.  
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement