Skip to content

Commit

Permalink
LDISC_AUTOLOAD can be disabled since v5.1
Browse files Browse the repository at this point in the history
This fixes the false positive report about LDISC_AUTOLOAD for old kernels
  • Loading branch information
a13xp0p0v committed Mar 5, 2020
1 parent 17c2222 commit 61b5ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kconfig-hardened-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ def construct_checklist(checklist, arch):
checklist.append(OptCheck('MAGIC_SYSRQ', 'is not set', 'clipos', 'cut_attack_surface'))
checklist.append(OptCheck('KEXEC_FILE', 'is not set', 'clipos', 'cut_attack_surface')) # refers to LOCK_DOWN_KERNEL (permissive)
checklist.append(OptCheck('USER_NS', 'is not set', 'clipos', 'cut_attack_surface')) # user.max_user_namespaces=0
checklist.append(OptCheck('LDISC_AUTOLOAD', 'is not set', 'clipos', 'cut_attack_surface'))
checklist.append(AND(OptCheck('LDISC_AUTOLOAD', 'is not set', 'clipos', 'cut_attack_surface'), \
VerCheck((5, 1)))) # LDISC_AUTOLOAD can be disabled since v5.1

checklist.append(OptCheck('MMIOTRACE', 'is not set', 'my', 'cut_attack_surface')) # refers to LOCK_DOWN_KERNEL (permissive)
checklist.append(OptCheck('LIVEPATCH', 'is not set', 'my', 'cut_attack_surface'))
Expand Down

0 comments on commit 61b5ca3

Please sign in to comment.