mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-06 19:15:02 -04:00
Update 40_kernel_hardening.cfg
This commit is contained in:
parent
3695d7491e
commit
02e8888b0b
1 changed files with 9 additions and 0 deletions
|
@ -1,2 +1,11 @@
|
|||
# Disables the merging of slabs of similar sizes. Sometimes a slab can be used in a vulnerable way which an attacker can exploit.
|
||||
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX slab_nomerge"
|
||||
|
||||
# Enables sanity checks (F), redzoning (Z) and poisoning (P).
|
||||
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX slab_debug=FZP"
|
||||
|
||||
# Wipes free memory so it can't leak in various ways and prevents some use-after-free vulnerabilites.
|
||||
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX page_poison=1"
|
||||
|
||||
# Makes the kernel panic on uncorrectable errors in ECC memory that an attacker could exploit.
|
||||
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX mce=0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue