From b53bf1795ce960f98ab5b3132006a6ab88b0a55d Mon Sep 17 00:00:00 2001 From: Sebastien BLAISOT Date: Wed, 1 Dec 2021 08:58:32 +0100 Subject: [PATCH] Fix grub detection (#119) Co-authored-by: GoldenKiwi --- bin/hardening/1.5.1_bootloader_ownership.sh | 2 +- bin/hardening/1.5.2_bootloader_password.sh | 4 ++-- bin/hardening/1.7.1.2_enable_apparmor.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/hardening/1.5.1_bootloader_ownership.sh b/bin/hardening/1.5.1_bootloader_ownership.sh index 7aaf6d9..70dbd77 100755 --- a/bin/hardening/1.5.1_bootloader_ownership.sh +++ b/bin/hardening/1.5.1_bootloader_ownership.sh @@ -64,7 +64,7 @@ apply() { # This function will check config parameters required check_config() { - is_pkg_installed "grub-pc" + is_pkg_installed "grub-common" if [ "$FNRET" != 0 ]; then warn "Grub is not installed, not handling configuration" exit 2 diff --git a/bin/hardening/1.5.2_bootloader_password.sh b/bin/hardening/1.5.2_bootloader_password.sh index 188dd2a..2ae0847 100755 --- a/bin/hardening/1.5.2_bootloader_password.sh +++ b/bin/hardening/1.5.2_bootloader_password.sh @@ -55,9 +55,9 @@ apply() { # This function will check config parameters required check_config() { - is_pkg_installed "grub-pc" + is_pkg_installed "grub-common" if [ "$FNRET" != 0 ]; then - warn "grub-pc is not installed, not handling configuration" + warn "Grub is not installed, not handling configuration" exit 2 fi if [ "$FNRET" != 0 ]; then diff --git a/bin/hardening/1.7.1.2_enable_apparmor.sh b/bin/hardening/1.7.1.2_enable_apparmor.sh index b07b9cf..5975365 100755 --- a/bin/hardening/1.7.1.2_enable_apparmor.sh +++ b/bin/hardening/1.7.1.2_enable_apparmor.sh @@ -33,7 +33,7 @@ audit() { done if [ "$ERROR" = 0 ]; then - is_pkg_installed "grub-pc" + is_pkg_installed "grub-common" if [ "$FNRET" != 0 ]; then if [ "$IS_CONTAINER" -eq 1 ]; then ok "Grub is not installed in container"