diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 11:57:44 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 11:57:44 +0300 |
commit | b7fb98a47f65a3eba15ac4222bb3a1e096432402 (patch) | |
tree | 9ad9435608d666e44fdc92b3b99672c3caa16b7c | |
parent | d621355b7e519867084e771c92cb6cde156dc8b9 (diff) |
[AUTH-9266] skip .pam-old files in /etc/pam.d (used by Ubuntu)
-rw-r--r-- | include/tests_authentication | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_authentication b/include/tests_authentication index 7b146001..c8c44d3f 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -644,12 +644,12 @@ # Description : Searching available PAM configurations (/etc/pam.d) Register --test-no AUTH-9266 --weight L --network NO --category security --description "Checking presence pam.d files" if [ ${SKIPTEST} -eq 0 ]; then - LogText "Test: Checking directory /etc/pam.d" + LogText "Test: Checking directory ${ROOTDIR}etc/pam.d" if [ -d ${ROOTDIR}etc/pam.d ]; then 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=$(find /etc/pam.d -type f -print | sort) + FIND=$(${FINDBINARY} ${ROOTDIR}etc/pam.d -not -name "*.pam-old" -type f -print | sort) for FILE in ${FIND}; do LogText "Found file: ${FILE}" done |