mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Perform configuration integrity test for AIDE
This commit is contained in:
parent
5461efc678
commit
77e2705eb7
@ -72,7 +72,14 @@
|
|||||||
if [ "${AIDECONFIG}" = "" ]; then
|
if [ "${AIDECONFIG}" = "" ]; then
|
||||||
Display --indent 6 --text "- AIDE config file" --result "NOT FOUND" --color YELLOW
|
Display --indent 6 --text "- AIDE config file" --result "NOT FOUND" --color YELLOW
|
||||||
else
|
else
|
||||||
Display --indent 6 --text "- AIDE config file" --result FOUND --color GREEN
|
logtext "Checking configuration file ${AIDECONFIG} for errors"
|
||||||
|
FIND=`${AIDEBINARY} --config=${AIDECONFIG} -D; echo $?`
|
||||||
|
if [ "${FIND}" = "0" ]; then
|
||||||
|
Display --indent 6 --text "- AIDE config file" --result FOUND --color GREEN
|
||||||
|
else
|
||||||
|
Display --indent 6 --text "- AIDE config file" --result WARNING --color YELLOW
|
||||||
|
ReportSuggestion "${TEST_NO}" "Check the AIDE configuratio file as it may contain errors"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user