Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteoberi <netadmin@aicta.ro>2021-01-03 13:14:24 +0300
committerGitHub <noreply@github.com>2021-01-03 13:14:24 +0300
commit06e3d98c913dbdffce19f65546123a4eb7629be6 (patch)
tree8dddaf081da1335c4b8eb7ece49fa791fd494e35 /include/tests_boot_services
parenta9cc4e0c62b3fcd8f715e8a66c3fd1f665ed50f6 (diff)
Update tests_boot_services
Add test for ELILO boot loader
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r--include/tests_boot_services19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index 7d6feeec..cb9f5586 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -484,6 +484,25 @@
#
#################################################################################
#
+ # 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
Register --test-no BOOT-5142 --weight L --network NO --category security --description "Check SPARC Improved boot loader (SILO)"