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:
-rw-r--r--default.prf3
-rw-r--r--include/consts1
-rw-r--r--include/parameters4
-rw-r--r--include/profiles6
-rw-r--r--include/report2
-rw-r--r--lynis.83
6 files changed, 18 insertions, 1 deletions
diff --git a/default.prf b/default.prf
index 7727a09d..dd5b939e 100644
--- a/default.prf
+++ b/default.prf
@@ -391,6 +391,9 @@ config:compliance_standards:cis,hipaa,iso27001,pci-dss:
# Enable quick mode (no waiting for keypresses, same as --quick option)
#quick=yes
+# Skip plugins (default: no)
+#skip-plugins=yes
+
# Skip a test (one per line)
#skip-test=SSH-7408
diff --git a/include/consts b/include/consts
index f7fa3735..0a74814e 100644
--- a/include/consts
+++ b/include/consts
@@ -100,6 +100,7 @@ unset LANG
MALWARE_SCANNER_INSTALLED=0
MYSQL_RUNNING=0
MIN_PASSWORD_LENGTH=-1
+ N_PLUGIN_ENABLED=0
NAME_CACHE_USED=0
NETWORK_INTERFACES=""
NGINX_ACCESS_LOG_DISABLED=0
diff --git a/include/parameters b/include/parameters
index 6dbb8e41..ae95755d 100644
--- a/include/parameters
+++ b/include/parameters
@@ -259,6 +259,10 @@
#RED=""
;;
+ --skip-plugins)
+ RUN_PLUGINS=0
+ ;;
+
# Only scan these tests
--tests)
shift
diff --git a/include/profiles b/include/profiles
index f811d96b..bd6440b2 100644
--- a/include/profiles
+++ b/include/profiles
@@ -182,6 +182,12 @@
Debug "Show warnings only set to ${SHOW_WARNINGS_ONLY}"
;;
+ # Skip plugins
+ skip-plugins)
+ FIND=`echo "${VALUE}" | egrep "^(1|yes)"` && RUN_PLUGINS=0
+ Debug "Run plugins is set to ${RUN_PLUGINS}"
+ ;;
+
# Which tests to skip (skip-test=ABCD-1234 or skip-test=ABCD-1234:subtest)
skip-test)
STRING=`echo ${VALUE} | tr '[:upper:]' '[:lower:]'`
diff --git a/include/report b/include/report
index f007e389..8124b8ad 100644
--- a/include/report
+++ b/include/report
@@ -167,7 +167,7 @@
echo ""
echo " ${CYAN}Hardening index${NORMAL} : ${WHITE}${HPINDEX}${NORMAL} ${HPGRAPH}"
echo " ${CYAN}Tests performed${NORMAL} : ${WHITE}${CTESTS_PERFORMED}${NORMAL}"
- echo " ${CYAN}Plugins enabled${NORMAL} : ${WHITE}${N_PLUGIN_ENABLED}${NORMAL}"
+ if [ ${RUN_PLUGINS} -eq 1 ]; then echo " ${CYAN}Plugins enabled${NORMAL} : ${WHITE}${N_PLUGIN_ENABLED}${NORMAL}"; fi
echo ""
echo " ${WHITE}Components${NORMAL}:"
if [ ${FIREWALL_ACTIVE} -eq 1 ]; then FIREWALL="${GREEN}V"; else FIREWALL="${RED}X"; fi
diff --git a/lynis.8 b/lynis.8
index 85eeffcf..b9eb847c 100644
--- a/lynis.8
+++ b/lynis.8
@@ -103,6 +103,9 @@ Provide an alternative name for report file.
.B \-\-reverse\-colors
Optimize screen output for light backgrounds.
.TP
+.B \-\-skip\-plugins
+Do not run plugins.
+.TP
.B \-\-tests TEST-IDs
Only run the specific test(s). When using multiple tests, add quotes around the
line.