mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 05:44:45 +02:00
Show logging of tests that have incorrect OS
This commit is contained in:
parent
e691cb9faf
commit
75d7c5dad6
@ -22,7 +22,9 @@
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
SETTING_SHOW_REPORT_SOLUTION=0 # default is no
|
# Set default values (should be equal to default.prf)
|
||||||
|
SETTING_LOG_TESTS_INCORRECT_OS=1
|
||||||
|
SETTING_SHOW_REPORT_SOLUTION=0
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
@ -161,8 +163,9 @@
|
|||||||
|
|
||||||
# Do (not) log tests if they have an different operating system
|
# Do (not) log tests if they have an different operating system
|
||||||
log-tests-incorrect-os | log_tests_incorrect_os)
|
log-tests-incorrect-os | log_tests_incorrect_os)
|
||||||
LogText "Option set: No logging for incorrect OS"
|
FIND=$(echo "${VALUE}" | egrep "^(0|false|no)") && SETTING_LOG_TESTS_INCORRECT_OS=0
|
||||||
if [ "${VALUE}" = "no" ]; then LOG_INCORRECT_OS=0; else LOG_INCORRECT_OS=1; fi
|
Debug "Logging of tests with incorrect operating system set to ${SETTING_LOG_TESTS_INCORRECT_OS}"
|
||||||
|
LOG_INCORRECT_OS=${SETTING_LOG_TESTS_INCORRECT_OS}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# What type of machine we are scanning (eg. desktop, server, server with storage)
|
# What type of machine we are scanning (eg. desktop, server, server with storage)
|
||||||
@ -442,7 +445,9 @@
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Register the discovered settings
|
# Register the discovered settings
|
||||||
|
AddSetting "logging-tests-incorrect-os" "${SETTING_LOG_TESTS_INCORRECT_OS}" "Logging of tests that have a different OS"
|
||||||
AddSetting "show-report-solution" "${SETTING_SHOW_REPORT_SOLUTION}" "Show more details in report (solution)"
|
AddSetting "show-report-solution" "${SETTING_SHOW_REPORT_SOLUTION}" "Show more details in report (solution)"
|
||||||
|
unset SETTING_LOG_TESTS_INCORRECT_OS SETTING_SHOW_REPORT_SOLUTION
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user