mirror of https://github.com/CISOfy/lynis.git
Small textual replacements for logging purposes
This commit is contained in:
parent
fb52ee9239
commit
2530256d85
|
@ -62,7 +62,7 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: ${USER_PASSWD_DOUBLEUID_AUDIT_TITLE}"
|
||||
logtext "Description: ${USER_PASSWD_DOUBLEUID_AUDIT_DESCRIPTION}"
|
||||
logtext "Action: Checking for non-unique accounts"
|
||||
logtext "Test: Checking for non-unique accounts"
|
||||
if [ "${OS}" = "DragonFly" -o "${OS}" = "FreeBSD" -o "${OS}" = "NetBSD" ]; then
|
||||
PASSWD_FILE="/etc/master.passwd"
|
||||
else
|
||||
|
|
|
@ -272,7 +272,7 @@
|
|||
Display --indent 2 --text "- Checking active kernel modules"
|
||||
logtext "Test: ${KERNEL_ACTIVE_MODULES_TITLE}"
|
||||
logtext "Description: ${KERNEL_ACTIVE_MODULES_DESCRIPTION}"
|
||||
logtext "Action: Checking modules"
|
||||
logtext "Test: Checking modules"
|
||||
if [ -f /sbin/kldstat ]; then
|
||||
FIND=`kldstat | grep -v 'Name' | tr -s ' ' | cut -d ' ' -f6`
|
||||
if [ $? -eq 0 ]; then
|
||||
|
|
|
@ -669,12 +669,12 @@
|
|||
logtext "Action: updating repository with apt-get"
|
||||
/usr/bin/apt-get -q=2 update
|
||||
logtext "Result: apt-get finished"
|
||||
logtext "Action: Checking if /usr/lib/update-notifier/apt-check exists"
|
||||
logtext "Test: Checking if /usr/lib/update-notifier/apt-check exists"
|
||||
if [ -x /usr/lib/update-notifier/apt-check ]; then
|
||||
PKG_AUDIT_TOOL_FOUND=1
|
||||
PKG_AUDIT_TOOL="apt-check"
|
||||
logtext "Result: found /usr/lib/update-notifier/apt-check"
|
||||
logtext "Action: checking if any of the updates contain security updates"
|
||||
logtext "Test: checking if any of the updates contain security updates"
|
||||
# apt-check binary is a script and translated. Do not search for normal text strings, but use numbered output only
|
||||
FIND=`/usr/lib/update-notifier/apt-check 2>&1 | awk -F\; '{ print $2 }'`
|
||||
# Check if we get the proper line back and amount of security patches available
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
if [ ${SNMP_DAEMON_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no SNMP-3304 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check SNMP daemon file location"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Action: searching for snmpd.conf file"
|
||||
logtext "Test: searching for snmpd.conf file"
|
||||
for I in ${SNMP_DAEMON_CONFIG_LOCS}; do
|
||||
if [ -f "${I}/snmpd.conf" ]; then
|
||||
logtext "Result: ${I}/snmpd.conf exists"
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
if [ ${SQUID_DAEMON_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no SQD-3604 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check Squid daemon file location"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Action: searching for squid.conf or squid3.conf file"
|
||||
logtext "Test: searching for squid.conf or squid3.conf file"
|
||||
for I in ${SQUID_DAEMON_CONFIG_LOCS}; do
|
||||
# Checking squid.conf
|
||||
if [ -f "${I}/squid.conf" ]; then
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
Register --test-no SSH-7404 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check SSH daemon file location"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
FOUND=0
|
||||
logtext "Action: searching for sshd_config file"
|
||||
logtext "Test: searching for sshd_config file"
|
||||
for I in ${SSH_DAEMON_CONFIG_LOCS}; do
|
||||
if [ -f "${I}/sshd_config" ]; then
|
||||
logtext "Result: ${I}/sshd_config exists"
|
||||
|
|
Loading…
Reference in New Issue