From: Alexander Popov Date: Wed, 9 Nov 2022 15:32:52 +0000 (+0300) Subject: Add the nosmt check X-Git-Tag: v0.6.1~54 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=d9614d2877d51bd9e758eea342999412ceee9183;p=kconfig-hardened-check.git Add the nosmt check --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 3e3997d..c226cc9 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -745,6 +745,7 @@ def add_cmdline_checks(l, arch): CmdlineCheck('self_protection', 'defconfig', 'rodata', 'is not set'))] # 'self_protection', 'kspp' + l += [CmdlineCheck('self_protection', 'kspp', 'nosmt')] # option presence check l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'), AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'), CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', 'is not set')))]