From 47e4cc173c810335d8079eb9d4c5bf7e1ec2e707 Mon Sep 17 00:00:00 2001 From: jammasterj89 <19202716+jammasterj89@users.noreply.github.com> Date: Fri, 15 Jan 2021 10:29:11 +0000 Subject: [PATCH] Fix check_2 to -le 644 Issue #459 raised that check_2 was only checking for 644 or 600 permissions, this now checks for anything less than or equal to 644. Signed-off-by: Niall T 19202716+jammasterj89@users.noreply.github.com --- tests/3_docker_daemon_configuration_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/3_docker_daemon_configuration_files.sh b/tests/3_docker_daemon_configuration_files.sh index 3d29598..bb51000 100644 --- a/tests/3_docker_daemon_configuration_files.sh +++ b/tests/3_docker_daemon_configuration_files.sh @@ -47,7 +47,7 @@ check_3_2() { totalChecks=$((totalChecks + 1)) file="$(get_service_file docker.service)" if [ -f "$file" ]; then - if [ "$(stat -c %a $file)" -eq 644 ] || [ "$(stat -c %a $file)" -eq 600 ]; then + if [ "$(stat -c %a $file)" -le 644 ]; then pass "$check_3_2" resulttestjson "PASS" currentScore=$((currentScore + 1))