mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Update tests_boot_services
Add test for ELILO boot loader
This commit is contained in:
parent
a9cc4e0c62
commit
06e3d98c91
@ -483,6 +483,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/Slackware/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…
x
Reference in New Issue
Block a user