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-09-24 16:51:05 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-09-24 16:51:05 +0300
commit870ac295c6155344431b0e8056ab417ca2835755 (patch)
treef31dcc589b8866132d3627a2cbf02148fa54c7f8
parent98d9096739acfebb55700317b7869dbb69f25dba (diff)
Show possible solution with findings
-rw-r--r--default.prf3
-rw-r--r--include/consts2
-rw-r--r--include/profiles5
3 files changed, 7 insertions, 3 deletions
diff --git a/default.prf b/default.prf
index b3c4b50e..473de2a0 100644
--- a/default.prf
+++ b/default.prf
@@ -54,6 +54,9 @@ quick=no
# Refresh software repositories to help detecting vulnerable packages
refresh-repositories=yes
+# Show solution for findings
+show-report-solution=yes
+
# Show inline tips about the tool
show-tool-tips=yes
diff --git a/include/consts b/include/consts
index 731107d7..caa04282 100644
--- a/include/consts
+++ b/include/consts
@@ -219,7 +219,7 @@ unset LANG
SHOWMOUNTBINARY=""
SHOW_PROGRAM_DETAILS=1
SHOW_REPORT=1
- SHOW_REPORT_SOLUTION=0
+ SHOW_REPORT_SOLUTION=1
SHOW_TOOL_TIPS=1 # Show inline tool tips (default true)
SHOW_WARNINGS_ONLY=0
SKIP_PLUGINS=0
diff --git a/include/profiles b/include/profiles
index f95db59e..7988995e 100644
--- a/include/profiles
+++ b/include/profiles
@@ -233,8 +233,9 @@
# Show more details in report
show-report-solution)
- FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)$") && SHOW_REPORT_SOLUTION=1
- if [ ! -z "${FIND}" ]; then SETTING_SHOW_REPORT_SOLUTION=1; fi
+ SETTING_SHOW_REPORT_SOLUTION=${SHOW_REPORT_SOLUTION}
+ FIND=$(echo "${VALUE}" | egrep "^(0|false|no)$") && SHOW_REPORT_SOLUTION=0
+ if [ ! -z "${FIND}" ]; then SETTING_SHOW_REPORT_SOLUTION=0; fi
Debug "Show report details (solution) set to ${SETTING_SHOW_REPORT_SOLUTION}"
;;