From: Alexander Popov Date: Sun, 23 Oct 2022 16:31:16 +0000 (+0300) Subject: Add the ARM64_E0PD check X-Git-Tag: v0.6.1~59 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=65b2684a586c34ca07944b88b1e3fa877961b1f2;hp=cfb4075cf996cba050abbf56f7c6284c63145042;p=kconfig-hardened-check.git Add the ARM64_E0PD check --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 3e50349..7523590 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -387,6 +387,7 @@ def add_kconfig_checks(l, arch): l += [KconfigCheck('self_protection', 'defconfig', 'ARM64_PAN', 'y')] l += [KconfigCheck('self_protection', 'defconfig', 'ARM64_EPAN', 'y')] l += [KconfigCheck('self_protection', 'defconfig', 'UNMAP_KERNEL_AT_EL0', 'y')] + l += [KconfigCheck('self_protection', 'defconfig', 'ARM64_E0PD', 'y')] l += [OR(KconfigCheck('self_protection', 'defconfig', 'HARDEN_EL2_VECTORS', 'y'), AND(KconfigCheck('self_protection', 'defconfig', 'RANDOMIZE_BASE', 'y'), VersionCheck((5, 9))))] # HARDEN_EL2_VECTORS was included in RANDOMIZE_BASE in v5.9