From: Alexander Popov Date: Sun, 29 Aug 2021 21:16:27 +0000 (+0300) Subject: Add CFI_CLANG X-Git-Tag: v0.5.14~10 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=4dc94be8a5e0c3a0889679f7079aa93c7f44464d;hp=264b0f6d674f7498b41c659713bfa707d04033bb;p=kconfig-hardened-check.git Add CFI_CLANG --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index caedb97..c69380c 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -428,6 +428,10 @@ def construct_checklist(l, arch): if arch == 'ARM64': l += [OptCheck('self_protection', 'my', 'SHADOW_CALL_STACK', 'y')] # depends on clang, maybe it's alternative to STACKPROTECTOR_STRONG l += [OptCheck('self_protection', 'my', 'KASAN_HW_TAGS', 'y')] + cfi_clang_is_set = OptCheck('self_protection', 'my', 'CFI_CLANG', 'y') + l += [cfi_clang_is_set] + l += [AND(OptCheck('self_protection', 'my', 'CFI_PERMISSIVE', 'is not set'), + cfi_clang_is_set)] # 'security_policy' if arch in ('X86_64', 'ARM64', 'X86_32'):