From: Alexander Popov Date: Mon, 25 Mar 2024 07:18:25 +0000 (+0300) Subject: Don't require GCC_PLUGINS separately X-Git-Url: https://jxself.org/git/?p=kconfig-hardened-check.git;a=commitdiff_plain;h=fd4c2f8a1bb754514c166efbd3a0029f8d97a91c Don't require GCC_PLUGINS separately It's auxiliary for building with gcc and it's not needed for building with clang. Refers to #102 --- diff --git a/kernel_hardening_checker/checks.py b/kernel_hardening_checker/checks.py index 0ce187d..780f7b8 100644 --- a/kernel_hardening_checker/checks.py +++ b/kernel_hardening_checker/checks.py @@ -36,7 +36,6 @@ def add_kconfig_checks(l, arch): l += [KconfigCheck('self_protection', 'defconfig', 'SLUB_DEBUG', 'y')] l += [KconfigCheck('self_protection', 'defconfig', 'THREAD_INFO_IN_TASK', 'y')] gcc_plugins_support_is_set = KconfigCheck('self_protection', 'defconfig', 'GCC_PLUGINS', 'y') - l += [gcc_plugins_support_is_set] iommu_support_is_set = KconfigCheck('self_protection', 'defconfig', 'IOMMU_SUPPORT', 'y') l += [iommu_support_is_set] # is needed for mitigating DMA attacks l += [OR(KconfigCheck('self_protection', 'defconfig', 'STACKPROTECTOR', 'y'),