diff options
author | Wojciech Banaś <fizista@gmail.com> | 2022-02-14 15:23:20 +0300 |
---|---|---|
committer | Wojciech Banaś <fizista@gmail.com> | 2022-02-14 15:23:20 +0300 |
commit | 4098236412d5f846f43576a35ac8694ed4783ce8 (patch) | |
tree | 6baf56462306457140989e2a3be9773e3e3579ef /include/tests_squid | |
parent | 4f382331b3d7d141c49a971050d3a9b61a94c511 (diff) |
#1270 added finding configuration files in the "etc" directory, even if they are symlinks
Diffstat (limited to 'include/tests_squid')
-rw-r--r-- | include/tests_squid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_squid b/include/tests_squid index c6b5174a..c486108c 100644 --- a/include/tests_squid +++ b/include/tests_squid @@ -131,7 +131,7 @@ Register --test-no SQD-3613 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check Squid file permissions" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking file permissions of ${SQUID_DAEMON_CONFIG}" - FIND=$(find ${SQUID_DAEMON_CONFIG} -type f -a \( -perm -004 -o -perm -002 -o -perm -001 \)) + FIND=$(find -L ${SQUID_DAEMON_CONFIG} -type f -a \( -perm -004 -o -perm -002 -o -perm -001 \)) if [ -n "${FIND}" ]; then LogText "Result: file ${SQUID_DAEMON_CONFIG} is world readable, writable or executable and could leak information or passwords" Display --indent 4 --text "- Checking Squid configuration file permissions" --result "${STATUS_WARNING}" --color RED |