diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-10-26 13:34:56 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-10-26 13:34:56 +0300 |
commit | 9203b01f88541a44f8c0f8ecd50ec66b14760be5 (patch) | |
tree | 735861bd653daf7cd84acf6237f330d053c6c83a /include | |
parent | b95e44a5262c930b8e2b4476c375a08c188fefb2 (diff) |
[BOOT-5139] support for roles
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_boot_services | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services index ec8454ad..07db0317 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -362,17 +362,20 @@ Display --indent 2 --text "- Checking presence LILO" --result "${STATUS_OK}" --color GREEN LogText "Checking password option LILO" FIND=$(${EGREPBINARY} 'password[[:space:]]?=' ${LILOCONFFILE} | ${GREPBINARY} -v "^#") - if [ -z "${FIND}" && $MACHINE_ROLE = "server" || "workstation" ]; then - Display --indent 4 --text "- Password option presence " --result "${STATUS_WARNING}" --color RED - LogText "Result: no password set for LILO. Bootloader is unprotected to dropping to single user mode or unauthorized access to devices/data." - ReportSuggestion ${TEST_NO} "Add a password to LILO, by adding a line to the lilo.conf file, above the first line saying 'image=<name>': password=<password>" - ReportWarning ${TEST_NO} "No password set on LILO bootloader" - AddHP 0 2 - elif [ -z "${FIND}" && $MACHINE_ROLE = "personal"]; then + if [ -z "${FIND}" ]; then + if [ "${MACHINE_ROLE}" = "server" -o "${MACHINE_ROLE}" = "workstation" ]; then + Display --indent 4 --text "- Password option presence " --result "${STATUS_WARNING}" --color RED + LogText "Result: no password set for LILO. Bootloader is unprotected to dropping to single user mode or unauthorized access to devices/data." + ReportSuggestion ${TEST_NO} "Add a password to LILO, by adding a line to the lilo.conf file, above the first line saying 'image=<name>': password=<password>" + ReportWarning ${TEST_NO} "No password set on LILO bootloader" + AddHP 0 2 + elif [ "${MACHINE_ROLE}" = "personal"]; then Display --indent 4 --text "- Password option presence " --result "${STATUS_WARNING}" --color yellow LogText "Result: no password set for LILO. Bootloader is unprotected to dropping to single user mode or unauthorized access to devices/data." ReportSuggestion ${TEST_NO} "No password set on LILO bootloader. Add a password to LILO, by adding a line to the lilo.conf file, above the first line saying 'image=<name>': password=<password>" - AddHP 0 2 + AddHP 1 2 + else + LogText "Result: no password set for LILO, with unknown machine role" fi else Display --indent 4 --text "- Password option presence " --result "${STATUS_OK}" --color GREEN |