mirror of https://github.com/CISOfy/lynis.git
Added STATUS_WEAK
This commit is contained in:
parent
d2c03c05df
commit
11368b4ca8
|
@ -35,5 +35,6 @@ STATUS_SKIPPED="SKIPPED"
|
|||
STATUS_SUGGESTION="SUGGESTION"
|
||||
STATUS_UNKNOWN="UNKNOWN"
|
||||
STATUS_WARNING="WARNING"
|
||||
STATUS_WEAK="WEAK"
|
||||
TEXT_YOU_CAN_HELP_LOGFILE="You can help by providing your log file"
|
||||
TEXT_UPDATE_AVAILABLE="update available"
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
AddHP 2 2
|
||||
else
|
||||
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"
|
||||
AddHP 0 1
|
||||
Report "weak_banner_file[]=${FILE}"
|
||||
|
@ -160,7 +160,7 @@
|
|||
AddHP 2 2
|
||||
else
|
||||
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"
|
||||
AddHP 0 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue