add init_on_free=1 for non-hardened kernels

This commit is contained in:
Daniel Micay 2023-01-23 21:34:33 -05:00
parent 67de376313
commit 3dfbd4e777

2
grub
View File

@ -4,7 +4,7 @@ GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="slab_nomerge lockdown=confidentiality vsyscall=none preempt=none console=ttyS0 "
GRUB_CMDLINE_LINUX="slab_nomerge init_on_free=1 lockdown=confidentiality vsyscall=none preempt=none console=ttyS0 "
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"