From: Alexander Popov Date: Tue, 23 Aug 2022 18:05:45 +0000 (+0300) Subject: Check the nokaslr cmdline parameter X-Git-Tag: v0.6.1~102 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;ds=inline;h=a5fc48e48f6cba7a643db24efb04ccb8626cb484;hp=1780bea6897a87876b468d17b92498825fb84953;p=kconfig-hardened-check.git Check the nokaslr cmdline parameter --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 88d373c..8ecdbf1 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -29,7 +29,6 @@ # ssbd=force-on # # Should NOT be set: -# nokaslr # sysrq_always_enabled # arm64.nobti # arm64.nopauth @@ -701,6 +700,7 @@ def add_cmdline_checks(l, arch): AND(KconfigCheck('self_protection', 'kspp', 'IOMMU_DEFAULT_PASSTHROUGH', 'is not set'), CmdlineCheck('self_protection', 'kspp', 'iommu.passthrough', 'is not set')))] # The cmdline checks compatible with the kconfig recommendations of the KSPP project... + l += [CmdlineCheck('self_protection', 'kspp', 'nokaslr', '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')))]