Skip to content

Commit

Permalink
Merge branch 'from-willenst-1'
Browse files Browse the repository at this point in the history
Refers to a13xp0p0v#152
  • Loading branch information
a13xp0p0v committed Aug 29, 2024
2 parents f866b36 + 66ec052 commit bd2f4c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel_hardening_checker/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,10 @@ def add_sysctl_checks(l: List[ChecklistObjType], _arch: StrOrNone) -> None:
AND(KconfigCheck('cut_attack_surface', 'kspp', 'MODULES', 'is not set'),
have_kconfig))] # radical, but may be useful in some cases

l += [OR(SysctlCheck('cut_attack_surface', 'grsec', 'kernel.io_uring_disabled', '2'),
AND(KconfigCheck('cut_attack_surface', 'grsec', 'IO_URING', 'is not set'),
have_kconfig))] # compatible with the 'IO_URING' kconfig check by grsecurity

l += [OR(SysctlCheck('cut_attack_surface', 'a13xp0p0v', 'kernel.sysrq', '0'),
AND(KconfigCheck('cut_attack_surface', 'clipos', 'MAGIC_SYSRQ', 'is not set'),
have_kconfig))]
Expand Down

0 comments on commit bd2f4c5

Please sign in to comment.