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:
authorMichael Boelen <michael.boelen@cisofy.com>2022-03-14 13:54:55 +0300
committerGitHub <noreply@github.com>2022-03-14 13:54:55 +0300
commit64758216f20bfb198ae45a258fb2bb9e8ecdbc45 (patch)
tree4490942f0973e25a044a19499313018e70eef24e /include/tests_authentication
parent5cd4b239b58e53bfb7d0d9b57abaccc638c44bed (diff)
parent0664dea9469867c6e9ef1883ef5e44861902b776 (diff)
Merge pull request #1271 from fizista/symlink_file
Allow symlinks to be used when searching for configuration files
Diffstat (limited to 'include/tests_authentication')
-rw-r--r--include/tests_authentication4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 46d1735b..0552d646 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -607,7 +607,7 @@
Display --indent 4 --text "- Permissions for directory: ${SUDOERS_D}" --result "${STATUS_WARNING}" --color RED
;;
esac
- SUDO_CONFIG_FILES="${SUDO_CONFIG_FILES} $(${FINDBINARY} ${SUDOERS_D} -type f -print)"
+ SUDO_CONFIG_FILES="${SUDO_CONFIG_FILES} $(${FINDBINARY} -L ${SUDOERS_D} -type f -print)"
fi
for f in ${SUDO_CONFIG_FILES}; do
LogText "Test: checking file (${f})"
@@ -764,7 +764,7 @@
LogText "Result: directory /etc/pam.d exists"
Display --indent 2 --text "- PAM configuration files (pam.d)" --result "${STATUS_FOUND}" --color GREEN
LogText "Test: searching PAM configuration files"
- FIND=$(${FINDBINARY} ${ROOTDIR}etc/pam.d \! -name "*.pam-old" -type f -print | sort)
+ FIND=$(${FINDBINARY} -L ${ROOTDIR}etc/pam.d \! -name "*.pam-old" -type f -print | sort)
for FILE in ${FIND}; do
LogText "Found file: ${FILE}"
done