mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1139 from teoberi/New-test-BOOT-5140---Check-for-ELILO-boot-loader-presence
New test: BOOT-5140 - Check for ELILO boot loader presence
This commit is contained in:
commit
32143f6377
|
@ -69,6 +69,7 @@ BOOT-5122:test:security:boot_services::Check for GRUB boot password:
|
|||
BOOT-5124:test:security:boot_services:FreeBSD:Check for FreeBSD boot loader presence:
|
||||
BOOT-5126:test:security:boot_services:NetBSD:Check for NetBSD boot loader presence:
|
||||
BOOT-5139:test:security:boot_services::Check for LILO boot loader presence:
|
||||
BOOT-5140:test:security:boot_services::Check for ELILO boot loader presence:
|
||||
BOOT-5142:test:security:boot_services::Check SPARC Improved boot loader (SILO):
|
||||
BOOT-5155:test:security:boot_services::Check for YABOOT boot loader configuration file:
|
||||
BOOT-5159:test:security:boot_services:OpenBSD:Check for OpenBSD boot loader presence:
|
||||
|
|
|
@ -487,6 +487,25 @@
|
|||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : BOOT-5140
|
||||
# Description : Check for ELILO boot loader
|
||||
Register --test-no BOOT-5140 --os "Linux" --weight L --network NO --root-only YES --category security --description "Check for ELILO boot loader presence"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
BOOT_LOADER_SEARCHED=1
|
||||
CONF_FILES="${ROOTDIR}etc/elilo.conf ${ROOTDIR}boot/efi/EFI/${LINUX_VERSION}/elilo.conf"
|
||||
for FILE in ${CONF_FILES}; do
|
||||
FileExists ${FILE}
|
||||
if [ ${FILE_FOUND} -eq 1 ]; then
|
||||
Display --indent 2 --text "- Checking boot loader ELILO" --result "${STATUS_FOUND}" --color GREEN
|
||||
LogText "Result: found ELILO boot loader"
|
||||
BOOT_LOADER="ELILO"
|
||||
BOOT_LOADER_FOUND=1
|
||||
fi
|
||||
done
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : BOOT-5142
|
||||
# Description : Check for SILO boot loader
|
||||
|
|
Loading…
Reference in New Issue