From: Alexander Popov Date: Sat, 13 Aug 2022 19:58:05 +0000 (+0300) Subject: Check hardened_usercopy in the cmdline X-Git-Tag: v0.6.1~115 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8c0b69201209503038da89238b4ad8b51aab126f;p=kconfig-hardened-check.git Check hardened_usercopy in the cmdline --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index cb8d54b..c8d0334 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -673,6 +673,9 @@ def add_cmdline_checks(l, arch): l += [OR(CmdlineCheck('self_protection', 'kspp', 'iommu.passthrough', '0'), AND(KconfigCheck('self_protection', 'kspp', 'IOMMU_DEFAULT_PASSTHROUGH', 'is not set'), CmdlineCheck('self_protection', 'kspp', 'iommu.passthrough', 'is not set')))] + l += [OR(CmdlineCheck('self_protection', 'kspp', 'hardened_usercopy', '1'), + AND(KconfigCheck('self_protection', 'kspp', 'HARDENED_USERCOPY', 'y'), + CmdlineCheck('self_protection', 'kspp', 'hardened_usercopy', 'is not set')))] l += [OR(CmdlineCheck('self_protection', 'kspp', 'slab_common.usercopy_fallback', '0'), AND(KconfigCheck('self_protection', 'kspp', 'HARDENED_USERCOPY_FALLBACK', 'is not set'), CmdlineCheck('self_protection', 'kspp', 'slab_common.usercopy_fallback', 'is not set')))]