From: Alexander Popov Date: Sat, 13 Aug 2022 23:16:18 +0000 (+0300) Subject: Check the 'rodata' cmdline parameter on the arches except ARM64 X-Git-Tag: v0.6.1~114 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=33120e460e0b8c021692d20381bc2e19644ea187;p=kconfig-hardened-check.git Check the 'rodata' cmdline parameter on the arches except ARM64 --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index c8d0334..6487be1 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -654,6 +654,9 @@ def add_cmdline_checks(l, arch): l += [OR(CmdlineCheck('self_protection', 'defconfig', 'rodata', 'full'), AND(KconfigCheck('self_protection', 'defconfig', 'RODATA_FULL_DEFAULT_ENABLED', 'y'), CmdlineCheck('self_protection', 'defconfig', 'rodata', 'is not set')))] + else: + l += [OR(CmdlineCheck('self_protection', 'defconfig', 'rodata', '1'), + CmdlineCheck('self_protection', 'defconfig', 'rodata', 'is not set'))] l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'), AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'),