From: Alexander Popov Date: Mon, 19 Aug 2024 14:32:41 +0000 (+0300) Subject: Change the `reason` for the `IP_SCTP` and `KGDB` kconfig checks X-Git-Tag: v0.6.10~19^2~1 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=4062882a9819d946ef5e42a3073f3d45d502606a;p=kconfig-hardened-check.git Change the `reason` for the `IP_SCTP` and `KGDB` kconfig checks --- diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index dab505b..38655cf 100755 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -401,6 +401,8 @@ def add_kconfig_checks(l: List[ChecklistObjType], arch: str) -> None: l += [KconfigCheck('cut_attack_surface', 'grsec', 'MPTCP', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'grsec', 'TLS', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'grsec', 'TIPC', 'is not set')] + l += [KconfigCheck('cut_attack_surface', 'grsec', 'IP_SCTP', 'is not set')] + l += [KconfigCheck('cut_attack_surface', 'grsec', 'KGDB', 'is not set')] l += [AND(KconfigCheck('cut_attack_surface', 'grsec', 'PTDUMP_DEBUGFS', 'is not set'), KconfigCheck('cut_attack_surface', 'grsec', 'X86_PTDUMP', 'is not set'))] @@ -434,11 +436,9 @@ def add_kconfig_checks(l: List[ChecklistObjType], arch: str) -> None: l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'MMIOTRACE', 'is not set')] # refers to LOCKDOWN (permissive) l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'LIVEPATCH', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'IP_DCCP', 'is not set')] - l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'IP_SCTP', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'FTRACE', 'is not set')] # refers to LOCKDOWN l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'VIDEO_VIVID', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'INPUT_EVBUG', 'is not set')] # Can be used as a keylogger - l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'KGDB', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'CORESIGHT', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'XFS_SUPPORT_V4', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'a13xp0p0v', 'BLK_DEV_WRITE_MOUNTED', 'is not set')]