mirror of https://github.com/CISOfy/lynis.git
Adding correct variables for proper logging and testing
This commit is contained in:
parent
9d1cec8a9b
commit
a5583da5c3
|
@ -42,6 +42,7 @@ unset LANG
|
||||||
#
|
#
|
||||||
AUDITORNAME=""
|
AUDITORNAME=""
|
||||||
AUTH_FAILED_LOGINS_LOGGED=0
|
AUTH_FAILED_LOGINS_LOGGED=0
|
||||||
|
AUTH_UNLOCK_TIME=-1
|
||||||
PROFILE=""
|
PROFILE=""
|
||||||
REPORTFILE=""
|
REPORTFILE=""
|
||||||
AFICKBINARY=""
|
AFICKBINARY=""
|
||||||
|
@ -84,6 +85,7 @@ unset LANG
|
||||||
MACHINEID=""
|
MACHINEID=""
|
||||||
MACHINE_ROLE=""
|
MACHINE_ROLE=""
|
||||||
MALWARE_SCANNER_INSTALLED=0
|
MALWARE_SCANNER_INSTALLED=0
|
||||||
|
MIN_PASSWORD_LENGTH=-1
|
||||||
NAME_CACHE_USED=0
|
NAME_CACHE_USED=0
|
||||||
NGINX_ACCESS_LOG_DISABLED=0
|
NGINX_ACCESS_LOG_DISABLED=0
|
||||||
NGINX_ACCESS_LOG_MISSING=0
|
NGINX_ACCESS_LOG_MISSING=0
|
||||||
|
|
2
lynis
2
lynis
|
@ -663,7 +663,7 @@
|
||||||
# Search plugins
|
# Search plugins
|
||||||
FIND_PLUGINS=`find ${PLUGINDIR} -type f -name "plugin_[a-z]*" -exec echo \{\} \; | sort`
|
FIND_PLUGINS=`find ${PLUGINDIR} -type f -name "plugin_[a-z]*" -exec echo \{\} \; | sort`
|
||||||
for PLUGIN_FILE in ${FIND_PLUGINS}; do
|
for PLUGIN_FILE in ${FIND_PLUGINS}; do
|
||||||
logtext "Found plugin file: ${I}"
|
logtext "Found plugin file: ${PLUGIN_FILE}"
|
||||||
# Double check if output is a valid file name
|
# Double check if output is a valid file name
|
||||||
if [ -f ${PLUGIN_FILE} ]; then
|
if [ -f ${PLUGIN_FILE} ]; then
|
||||||
FIND2=`grep "^# PLUGIN_NAME=" ${PLUGIN_FILE} | awk -F= '{ print $2 }'`
|
FIND2=`grep "^# PLUGIN_NAME=" ${PLUGIN_FILE} | awk -F= '{ print $2 }'`
|
||||||
|
|
Loading…
Reference in New Issue