Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-08-13 11:03:33 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-08-13 11:03:33 +0300
commit75d7c5dad65ea14d9f7149cb4f9fb947ca55702d (patch)
treee7fd29e551238cd6f72dfbbe4280606007f14f4d /include
parente691cb9faf7181ee358ade5af2ac408cc01fb68d (diff)
Show logging of tests that have incorrect OS
Diffstat (limited to 'include')
-rw-r--r--include/profiles11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/profiles b/include/profiles
index d029ca56..6aa64620 100644
--- a/include/profiles
+++ b/include/profiles
@@ -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
log-tests-incorrect-os | log_tests_incorrect_os)
- LogText "Option set: No logging for incorrect OS"
- if [ "${VALUE}" = "no" ]; then LOG_INCORRECT_OS=0; else LOG_INCORRECT_OS=1; fi
+ FIND=$(echo "${VALUE}" | egrep "^(0|false|no)") && SETTING_LOG_TESTS_INCORRECT_OS=0
+ 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)
@@ -442,7 +445,9 @@
#################################################################################
#
# 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)"
+ unset SETTING_LOG_TESTS_INCORRECT_OS SETTING_SHOW_REPORT_SOLUTION
#
#################################################################################
#