mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-03 04:47:58 +07:00
Harden/disable recovery mode options
This commit is contained in:
parent
7902311c57
commit
439fa7f3be
16
etc/default/grub.d/41_recovery_restrict.cfg
Normal file
16
etc/default/grub.d/41_recovery_restrict.cfg
Normal file
@ -0,0 +1,16 @@
|
||||
## Copyright (C) 2024 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
## Definitions:
|
||||
## KSPP=yes: compliant with recommendations by the KSPP
|
||||
## KSPP=partial: partially compliant with recommendations by the KSPP
|
||||
## KSPP=no: not (currently) compliant with recommendations by the KSPP
|
||||
## If there is no explicit KSPP compliance notice, the setting is not mentioned by the KSPP.
|
||||
|
||||
## Disable access to single-user mode (i.e. recovery mode).
|
||||
## https://forums.kicksecure.com/t/remove-linux-recovery-mode-boot-option-from-default-grub-boot-menu/727
|
||||
GRUB_DISABLE_RECOVERY='true'
|
||||
|
||||
## Disable access to Dracut's recovery console.
|
||||
## https://forums.kicksecure.com/t/harden-dracut-initramfs-generator-by-disabling-recovery-console/724
|
||||
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT rd.shell=0 rd.emergency=halt"
|
Loading…
Reference in New Issue
Block a user