Added STATUS_WEAK

This commit is contained in:
Michael Boelen 2019-01-14 11:13:03 +01:00
parent d2c03c05df
commit 11368b4ca8
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
2 changed files with 3 additions and 2 deletions

View File

@ -35,5 +35,6 @@ STATUS_SKIPPED="SKIPPED"
STATUS_SUGGESTION="SUGGESTION" STATUS_SUGGESTION="SUGGESTION"
STATUS_UNKNOWN="UNKNOWN" STATUS_UNKNOWN="UNKNOWN"
STATUS_WARNING="WARNING" STATUS_WARNING="WARNING"
STATUS_WEAK="WEAK"
TEXT_YOU_CAN_HELP_LOGFILE="You can help by providing your log file" TEXT_YOU_CAN_HELP_LOGFILE="You can help by providing your log file"
TEXT_UPDATE_AVAILABLE="update available" TEXT_UPDATE_AVAILABLE="update available"

View File

@ -107,7 +107,7 @@
AddHP 2 2 AddHP 2 2
else else
LogText "Result: Found only ${COUNT} key words (5 or more suggested), to warn unauthorized users and could be increased" LogText "Result: Found only ${COUNT} key words (5 or more suggested), to warn unauthorized users and could be increased"
Display --indent 4 --text "- ${FILE} contents" --result WEAK --color YELLOW Display --indent 4 --text "- ${FILE} contents" --result "${STATUS_WEAK}" --color YELLOW
ReportSuggestion ${TEST_NO} "Add a legal banner to ${FILE}, to warn unauthorized users" ReportSuggestion ${TEST_NO} "Add a legal banner to ${FILE}, to warn unauthorized users"
AddHP 0 1 AddHP 0 1
Report "weak_banner_file[]=${FILE}" Report "weak_banner_file[]=${FILE}"
@ -160,7 +160,7 @@
AddHP 2 2 AddHP 2 2
else else
LogText "Result: Found only ${COUNT} key words, to warn unauthorized users and could be increased" LogText "Result: Found only ${COUNT} key words, to warn unauthorized users and could be increased"
Display --indent 4 --text "- ${ROOTDIR}etc/issue.net contents" --result WEAK --color YELLOW Display --indent 4 --text "- ${ROOTDIR}etc/issue.net contents" --result "${STATUS_WEAK}" --color YELLOW
ReportSuggestion ${TEST_NO} "Add legal banner to /etc/issue.net, to warn unauthorized users" ReportSuggestion ${TEST_NO} "Add legal banner to /etc/issue.net, to warn unauthorized users"
AddHP 0 1 AddHP 0 1
fi fi