mirror of https://github.com/CISOfy/lynis.git
Changes to BOOT-5104 and HTTP-6716
This commit is contained in:
parent
0bc344d049
commit
aec9b57c29
|
@ -121,6 +121,11 @@
|
|||
SERVICE_MANAGER="bsdrc"
|
||||
fi
|
||||
;;
|
||||
"macOS")
|
||||
if [ -x ${ROOTDIR}sbin/launchd ]; then
|
||||
SERVICE_MANAGER="launchd"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
LogText "Result: unknown service manager"
|
||||
;;
|
||||
|
|
|
@ -561,20 +561,20 @@
|
|||
Display --indent 8 --text "- Debugging mode on error_log" --result "${STATUS_YES}" --color RED
|
||||
AddHP 2 3
|
||||
else
|
||||
LogText "Result: no virtual hosts found which have their access log disabled"
|
||||
LogText "Result: no virtual hosts found which have their their error log in debug mode"
|
||||
Display --indent 8 --text "- Debugging mode on error_log" --result "${STATUS_NO}" --color GREEN
|
||||
AddHP 3 3
|
||||
fi
|
||||
# Report suggestion
|
||||
if [ ${NGINX_LOG_SUGGESTION} -eq 1 ]; then
|
||||
ReportSuggestion ${TEST_NO} "Check your nginx error_log statements"
|
||||
ReportSuggestion ${TEST_NO} "Check your nginx error_log statements and disable debug mode"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : HTTP-6720
|
||||
# Description : Search for Nginx log files
|
||||
# Description : Search for nginx log files
|
||||
if [ ${NGINX_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no HTTP-6720 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check Nginx log files"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue