diff options
author | mboelen <michael@cisofy.com> | 2014-09-15 14:01:09 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-09-15 14:01:09 +0400 |
commit | c9fde8c2d11744cc0875bc3e5dd0abf096211755 (patch) | |
tree | 0997d08919db7ec4e2aa9065c3e9aaf1671c4d6f /include/tests_file_permissions | |
parent | 35d32fb5e40b86632677fd2256aebeddf926394a (diff) |
Code cleanup and small enhancements
Diffstat (limited to 'include/tests_file_permissions')
-rw-r--r-- | include/tests_file_permissions | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/tests_file_permissions b/include/tests_file_permissions index b0ea1d73..0be42da9 100644 --- a/include/tests_file_permissions +++ b/include/tests_file_permissions @@ -18,7 +18,7 @@ # ################################################################################# # - InsertSection "System Tools" + InsertSection "File Permissions" # ################################################################################# # @@ -26,7 +26,7 @@ # Description : Perform file permissions check Register --test-no FILE-7524 --weight L --network NO --description "Perform file permissions check" if [ ${SKIPTEST} -eq 0 ]; then - Display --indent 2 --text "- Starting file permissions check..." + Display --indent 2 --text "- Starting file permissions check" logtext "Test: Checking file permissions" logtext "Using profile ${PROFILE} for baseline." FIND=`cat ${PROFILE} | egrep '^permfile:|^permdir:' | cut -d: -f2` @@ -37,17 +37,17 @@ logtext " Actual permissions: ${FILEVALUE}" logtext " Result: $PERMS" if [ "${PERMS}" = "FILE_NOT_FOUND" ]; then - Display --indent 4 --text "${I}" --result "NOT FOUND" --color WHITE - elif [ "${PERMS}" = "OK" ]; then - Display --indent 4 --text "${I}" --result OK --color GREEN - elif [ "${PERMS}" = "BAD" ]; then - Display --indent 4 --text "${I}" --result WARNING --color RED - ReportWarning ${TEST_NO} "M" "Incorrect permissions for file ${I}" - else - logtext "UNKNOWN status for file" - fi + Display --indent 4 --text "${I}" --result "NOT FOUND" --color WHITE + elif [ "${PERMS}" = "OK" ]; then + Display --indent 4 --text "${I}" --result OK --color GREEN + elif [ "${PERMS}" = "BAD" ]; then + Display --indent 4 --text "${I}" --result WARNING --color RED + ReportWarning ${TEST_NO} "M" "Incorrect permissions for file ${I}" + else + logtext "UNKNOWN status for file" + fi done - fi + fi # ################################################################################# # |