From: Alexander Popov Date: Mon, 19 Aug 2024 14:24:07 +0000 (+0300) Subject: Fix the check order, no functional changes X-Git-Tag: v0.6.10~19^2~4 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=ee65a8b32dde88c8bdb83aefa5abd02207fb836e;p=kconfig-hardened-check.git Fix the check order, no functional changes --- diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index dea6e0b..b472f5c 100755 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -391,8 +391,6 @@ def add_kconfig_checks(l: List[ChecklistObjType], arch: str) -> None: l += [KconfigCheck('cut_attack_surface', 'grsec', 'KCOV', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'grsec', 'PROVIDE_OHCI1394_DMA_INIT', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'grsec', 'SUNRPC_DEBUG', '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'))] l += [KconfigCheck('cut_attack_surface', 'grsec', 'X86_16BIT', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'grsec', 'BLK_DEV_UBLK', 'is not set')] l += [KconfigCheck('cut_attack_surface', 'grsec', 'VCAP_KUNIT_TEST', 'is not set')] @@ -406,6 +404,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 += [AND(KconfigCheck('cut_attack_surface', 'grsec', 'PTDUMP_DEBUGFS', 'is not set'), + KconfigCheck('cut_attack_surface', 'grsec', 'X86_PTDUMP', 'is not set'))] # 'cut_attack_surface', 'clipos' l += [KconfigCheck('cut_attack_surface', 'clipos', 'STAGING', 'is not set')]