diff options
author | mboelen <michael@cisofy.com> | 2015-12-21 23:17:15 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-12-21 23:17:15 +0300 |
commit | d16b38eff83a8dca405e21e1c34205289f3d0832 (patch) | |
tree | d9db1eac3d4ead003f0e1b4fbfbabf0ddeb66c1e /include/tests_file_permissions | |
parent | 83a44827e03543146e39c37c33f14ebca6f40a29 (diff) |
Rename of logtext and report functions, upcoming year change
Diffstat (limited to 'include/tests_file_permissions')
-rw-r--r-- | include/tests_file_permissions | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/tests_file_permissions b/include/tests_file_permissions index c702e64b..634c25d2 100644 --- a/include/tests_file_permissions +++ b/include/tests_file_permissions @@ -5,7 +5,7 @@ # Lynis # ------------------ # -# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com) +# Copyright 2007-2016, Michael Boelen, CISOfy (michael.boelen@cisofy.com) # Web site: https://cisofy.com # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are @@ -27,15 +27,15 @@ 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" - logtext "Test: Checking file permissions" - logtext "Using profile ${PROFILE} for baseline." + LogText "Test: Checking file permissions" + LogText "Using profile ${PROFILE} for baseline." FIND=`egrep '^permfile:|^permdir:' ${PROFILE} | cut -d: -f2` for I in ${FIND}; do - logtext "Checking ${I}" + LogText "Checking ${I}" CheckFilePermissions ${I} - logtext " Expected permissions: ${PROFILEVALUE}" - logtext " Actual permissions: ${FILEVALUE}" - logtext " Result: $PERMS" + LogText " Expected permissions: ${PROFILEVALUE}" + 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 @@ -44,7 +44,7 @@ Display --indent 4 --text "${I}" --result WARNING --color RED ReportWarning ${TEST_NO} "M" "Incorrect permissions for file ${I}" else - logtext "UNKNOWN status for file" + LogText "UNKNOWN status for file" fi done fi @@ -56,4 +56,4 @@ wait_for_keypress # #================================================================================ -# Lynis - Copyright 2007-2015, CISOfy - https://cisofy.com +# Lynis - Copyright 2007-2016, CISOfy - https://cisofy.com |