From: Alexander Popov Date: Tue, 21 Sep 2021 19:29:22 +0000 (+0300) Subject: Add HARDENED_USERCOPY_PAGESPAN check from KSPP X-Git-Tag: v0.5.14~2 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=3da1225a62650f5d71fc07239eeaa05455c21b28;p=kconfig-hardened-check.git Add HARDENED_USERCOPY_PAGESPAN check from KSPP --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 530c45f..21d3bfb 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -362,6 +362,8 @@ def construct_checklist(l, arch): l += [hardened_usercopy_is_set] l += [AND(OptCheck('self_protection', 'kspp', 'HARDENED_USERCOPY_FALLBACK', 'is not set'), hardened_usercopy_is_set)] + l += [AND(OptCheck('self_protection', 'kspp', 'HARDENED_USERCOPY_PAGESPAN', 'is not set'), + hardened_usercopy_is_set)] l += [OR(OptCheck('self_protection', 'kspp', 'MODULE_SIG', 'y'), modules_not_set)] l += [OR(OptCheck('self_protection', 'kspp', 'MODULE_SIG_ALL', 'y'),