Skip to content

Commit

Permalink
Add noefi to kernel command line
Browse files Browse the repository at this point in the history
Since we use CONFIG_PAX_KERNEXEC, it is recommended we pass noefi to the commandline as EFI runtime are mapped RWX.
  • Loading branch information
emkll committed Nov 7, 2019
1 parent 9cd6814 commit da891bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install_files/securedrop-grsec/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ case "$1" in
# highest kernel version. Any kernel provided by apt.freedom.press must
# suprecede the ones provided by Ubuntu.
sed -i '/^GRUB_DEFAULT=/s/=.*/=0/' /etc/default/grub
# When using CONFIG_PAX_KERNEXEC, the grsecurity team recommends the kernel
# is booted with "noefi" on the kernel command line if "CONFIG_EFI" is
# enabled, as EFI runtime services are necessarily mapped as RWX.
sed -i '/^GRUB_CMDLINE_LINUX_DEFAULT=/s/=.*/=\"quiet noefi\"/' /etc/default/grub

update-grub
;;

Expand Down

0 comments on commit da891bc

Please sign in to comment.