From 4bddd8ee8bb7da28f9fad53b0055143ccf96033a Mon Sep 17 00:00:00 2001 From: Charles Herlin Date: Fri, 1 Mar 2019 10:00:35 +0100 Subject: [PATCH] IMP(8.2.5): follow symlinks in find --- bin/hardening/8.2.5_syslog-ng_remote_host.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hardening/8.2.5_syslog-ng_remote_host.sh b/bin/hardening/8.2.5_syslog-ng_remote_host.sh index 48e0544..ebd85e6 100755 --- a/bin/hardening/8.2.5_syslog-ng_remote_host.sh +++ b/bin/hardening/8.2.5_syslog-ng_remote_host.sh @@ -19,7 +19,7 @@ PATTERN='destination[[:alnum:][:space:]*{]+(tcp|udp)[[:space:]]*\(\"[[:alnum:].] # This function will be called if the script status is on enabled / audit mode audit () { FOUND=0 - FILES="$SYSLOG_BASEDIR/syslog-ng.conf $(find $SYSLOG_BASEDIR/conf.d/ -type f)" + FILES="$SYSLOG_BASEDIR/syslog-ng.conf $(find -L $SYSLOG_BASEDIR/conf.d/ -type f)" for FILE in $FILES; do does_pattern_exist_in_file_multiline "$FILE" "$PATTERN" if [ $FNRET = 0 ]; then @@ -37,7 +37,7 @@ audit () { # This function will be called if the script status is on enabled mode apply () { FOUND=0 - FILES="$SYSLOG_BASEDIR/syslog-ng.conf $(find $SYSLOG_BASEDIR/conf.d/ -type f)" + FILES="$SYSLOG_BASEDIR/syslog-ng.conf $(find -L $SYSLOG_BASEDIR/conf.d/ -type f)" for FILE in $FILES; do does_pattern_exist_in_file_multiline "$FILE" "$PATTERN" if [ $FNRET = 0 ]; then