Fix 'decision' -- CONFIG_INTEGRITY is not enabled by default on ARM
authorAlexander Popov <alex.popov@linux.com>
Wed, 15 Jul 2020 15:26:22 +0000 (18:26 +0300)
committerAlexander Popov <alex.popov@linux.com>
Wed, 15 Jul 2020 15:26:22 +0000 (18:26 +0300)
kconfig_hardened_check/__init__.py

index f3f270f647cd9f679735d14e31e3dae633dd7efc..a4853b9dbfad9e837ecdffa69daa87dd294fb515 100644 (file)
@@ -493,7 +493,10 @@ def construct_checklist(l, arch):
     l += [OptCheck('cut_attack_surface', 'my', 'INPUT_EVBUG', 'is not set')] # Can be used as a keylogger
 
     # 'userspace_hardening'
-    l += [OptCheck('userspace_hardening', 'defconfig', 'INTEGRITY', 'y')]
+    if arch in ('X86_64', 'ARM64', 'X86_32'):
+        l += [OptCheck('userspace_hardening', 'defconfig', 'INTEGRITY', 'y')]
+    if arch == 'ARM':
+        l += [OptCheck('userspace_hardening', 'my', 'INTEGRITY', 'y')]
     if arch in ('ARM', 'X86_32'):
         l += [OptCheck('userspace_hardening', 'defconfig', 'VMSPLIT_3G', 'y')]
     if arch in ('X86_64', 'ARM64'):