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:
authorThomas Sjögren <konstruktoid@users.noreply.github.com>2021-04-30 23:07:42 +0300
committerThomas Sjögren <konstruktoid@users.noreply.github.com>2021-04-30 23:07:42 +0300
commited3d75872edbb44873b6e83c477e49bacb218450 (patch)
treec122211238d4d9f546b169b77b13340459627769 /include/tests_file_integrity
parent2e99545e8180abd4ab36582e261fb92a781a0318 (diff)
add support for additional Aide db paths
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
Diffstat (limited to 'include/tests_file_integrity')
-rw-r--r--include/tests_file_integrity2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_file_integrity b/include/tests_file_integrity
index 68d02c5f..8a38b97e 100644
--- a/include/tests_file_integrity
+++ b/include/tests_file_integrity
@@ -104,7 +104,7 @@
if [ -n "${AIDEBINARY}" -a -n "${AIDECONFIG}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
Register --test-no FINT-4316 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Presence of AIDE database and size check"
if [ ${SKIPTEST} -eq 0 ]; then
- AIDE_DB=$(${GREPBINARY} ^database= ${AIDECONFIG} | ${SEDBINARY} "s/.*://")
+ AIDE_DB=$(${EGREPBINARY} '(^database|^database_in)=' ${AIDECONFIG} | ${SEDBINARY} "s/.*://")
if case ${AIDE_DB} in @@*) ;; *) false;; esac; then
I=$(${GREPBINARY} "@@define.*DBDIR" ${AIDECONFIG} | ${AWKBINARY} '{print $3}')
AIDE_DB=$(echo ${AIDE_DB} | ${SEDBINARY} "s#.*}#${I}#")