From: Alexander Popov Date: Fri, 9 Dec 2022 17:37:49 +0000 (+0300) Subject: Add the ssbd check X-Git-Tag: v0.6.1~38 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=bc54ef9240bffb220930cecbfc217f791259663b;p=kconfig-hardened-check.git Add the ssbd check --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 48476a4..15bdcae 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -20,7 +20,6 @@ # tsx=off # ARM64: # kpti=on -# ssbd=force-on # # Should NOT be set: # sysrq_always_enabled @@ -751,6 +750,9 @@ def add_cmdline_checks(l, arch): l += [OR(CmdlineCheck('self_protection', 'defconfig', 'retbleed', 'is not off'), CmdlineCheck('self_protection', 'defconfig', 'retbleed', 'is not set'))] if arch == 'ARM64': + l += [OR(CmdlineCheck('self_protection', 'defconfig', 'ssbd', 'kernel'), + CmdlineCheck('self_protection', 'my', 'ssbd', 'force-on'), + CmdlineCheck('self_protection', 'defconfig', 'ssbd', 'is not set'))] 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')))]