mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
Generic code enhancements
This commit is contained in:
parent
cac6a8e438
commit
805cdf6bf5
@ -119,8 +119,8 @@
|
|||||||
Register --test-no MALW-3284 --weight L --network NO --description "Check for clamd"
|
Register --test-no MALW-3284 --weight L --network NO --description "Check for clamd"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: checking running ClamAV daemon (clamd)"
|
logtext "Test: checking running ClamAV daemon (clamd)"
|
||||||
FIND=`${PSBINARY} ax | grep "/clamd" | grep -v "grep"`
|
IsRunning clamd
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
Display --indent 2 --text "- Checking ClamAV daemon" --result "FOUND" --color GREEN
|
Display --indent 2 --text "- Checking ClamAV daemon" --result "FOUND" --color GREEN
|
||||||
logtext "Result: found running clamd process"
|
logtext "Result: found running clamd process"
|
||||||
MALWARE_SCANNER_INSTALLED=1
|
MALWARE_SCANNER_INSTALLED=1
|
||||||
@ -139,8 +139,8 @@
|
|||||||
Register --test-no MALW-3286 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check for freshclam"
|
Register --test-no MALW-3286 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check for freshclam"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: checking running freshclam daemon"
|
logtext "Test: checking running freshclam daemon"
|
||||||
FIND=`${PSBINARY} ax | grep "/freshclam" | grep -v "grep"`
|
IsRunning freshclam
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
Display --indent 4 --text "- Checking freshclam" --result "FOUND" --color GREEN
|
Display --indent 4 --text "- Checking freshclam" --result "FOUND" --color GREEN
|
||||||
logtext "Result: found running freshclam process"
|
logtext "Result: found running freshclam process"
|
||||||
AddHP 2 2
|
AddHP 2 2
|
||||||
@ -158,21 +158,20 @@
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
|
|
||||||
# Test : MALW-3292
|
# Test : MALW-3292
|
||||||
# Description : Check if at least one malware scanner is installed
|
# Description : Check if at least one malware scanner is installed
|
||||||
# Register --test-no MALW-3292 --weight L --network NO --description "Check for at least one malware scanner"
|
# Register --test-no MALW-3292 --weight L --network NO --description "Check for at least one malware scanner"
|
||||||
# if [ ${SKIPTEST} -eq 0 ]; then
|
# if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
# if [ ${MALWARE_SCANNER_INSTALLED} -eq 1 ]; then
|
# if [ ${MALWARE_SCANNER_INSTALLED} -eq 1 ]; then
|
||||||
# logtext "Result: At least one malware scanner is installed"
|
# logtext "Result: At least one malware scanner is installed"
|
||||||
# Display --indent 2 --text "- Checking presence malware scanner" --result "FOUND" --color GREEN
|
# Display --indent 2 --text "- Checking presence malware scanner" --result "FOUND" --color GREEN
|
||||||
# #AddHP 3 3
|
# #AddHP 3 3
|
||||||
# else
|
# else
|
||||||
# logtext "Result: No malware scanners found"
|
# logtext "Result: No malware scanners found"
|
||||||
# Display --indent 2 --text "- Checking presence malware scanner" --result "NOT FOUND" --color YELLOW
|
# Display --indent 2 --text "- Checking presence malware scanner" --result "NOT FOUND" --color YELLOW
|
||||||
# ReportSuggestion ${TEST_NO} "Install at least one malware scanner to perform periodic integrity tests on the system"
|
# ReportSuggestion ${TEST_NO} "Install at least one malware scanner to perform periodic integrity tests on the system"
|
||||||
# #AddHP 0 3
|
# #AddHP 0 3
|
||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user