mirror of https://github.com/CISOfy/lynis.git
Check for rEFInd boot loader
Detect rEFInd boot loader (https://www.rodsbooks.com/refind/). Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
This commit is contained in:
parent
e5c1f2f303
commit
3aaeeea856
|
@ -57,6 +57,7 @@ BOOT-5102:test:security:boot_services:AIX:Check for AIX boot device:
|
||||||
BOOT-5104:test:security:boot_services::Determine service manager:
|
BOOT-5104:test:security:boot_services::Determine service manager:
|
||||||
BOOT-5106:test:security:boot_services:MacOS:Check EFI boot file on macOS:
|
BOOT-5106:test:security:boot_services:MacOS:Check EFI boot file on macOS:
|
||||||
BOOT-5108:test:security:boot_services:Linux:Test Syslinux boot loader:
|
BOOT-5108:test:security:boot_services:Linux:Test Syslinux boot loader:
|
||||||
|
BOOT-5109:test:security:boot_services:Linux:Test rEFInd boot loader:
|
||||||
BOOT-5116:test:security:boot_services::Check if system is booted in UEFI mode:
|
BOOT-5116:test:security:boot_services::Check if system is booted in UEFI mode:
|
||||||
BOOT-5117:test:security:boot_services:Linux:Check for systemd-boot boot loader:
|
BOOT-5117:test:security:boot_services:Linux:Check for systemd-boot boot loader:
|
||||||
BOOT-5121:test:security:boot_services::Check for GRUB boot loader presence:
|
BOOT-5121:test:security:boot_services::Check for GRUB boot loader presence:
|
||||||
|
|
|
@ -182,6 +182,21 @@
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
#
|
||||||
|
# Test : BOOT-5109
|
||||||
|
# Description : Check for rEFInd
|
||||||
|
Register --test-no BOOT-5109 --os "Linux" --weight L --network NO --root-only YES --category security --description "Check rEFInd as bootloader"
|
||||||
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
|
BOOT_LOADER_SEARCHED=1
|
||||||
|
FileExists ${ROOTDIR}boot/refind_linux.conf
|
||||||
|
if [ ${FILE_FOUND} -eq 1 ]; then
|
||||||
|
LogText "Result: found rEFInd"
|
||||||
|
BOOT_LOADER="rEFInd"
|
||||||
|
BOOT_LOADER_FOUND=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Test : BOOT-5116
|
# Test : BOOT-5116
|
||||||
# Description : Check if system is booted in UEFI mode
|
# Description : Check if system is booted in UEFI mode
|
||||||
|
|
Loading…
Reference in New Issue