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:
authormboelen <michael@cisofy.com>2014-10-27 02:28:28 +0300
committermboelen <michael@cisofy.com>2014-10-27 02:28:28 +0300
commit77e2705eb757d7330207ded6d70de5d869e8828d (patch)
treebd2dd4e98971438f2c5a7d0228cfec9b9c960523 /include/tests_file_integrity
parent5461efc678461dfd708545ce3552ae42b34dd52c (diff)
Perform configuration integrity test for AIDE
Diffstat (limited to 'include/tests_file_integrity')
-rw-r--r--include/tests_file_integrity9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/tests_file_integrity b/include/tests_file_integrity
index 506a87e1..339e25dc 100644
--- a/include/tests_file_integrity
+++ b/include/tests_file_integrity
@@ -72,7 +72,14 @@
if [ "${AIDECONFIG}" = "" ]; then
Display --indent 6 --text "- AIDE config file" --result "NOT FOUND" --color YELLOW
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
#