From 3059cef2c3f3ec39d8f8ff4d34f9271ec0016cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Wed, 17 Jun 2015 23:52:23 +0200 Subject: [PATCH] 444 is read-only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/3_docker_daemon_configuration_files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/3_docker_daemon_configuration_files.sh b/tests/3_docker_daemon_configuration_files.sh index 7f23371..33db6bc 100644 --- a/tests/3_docker_daemon_configuration_files.sh +++ b/tests/3_docker_daemon_configuration_files.sh @@ -276,7 +276,7 @@ if [ -d "$directory" ]; then fail=0 perms=$(ls -lL "$directory"/*.crt | awk '{print $1}') for p in $perms; do - if [ "$p" != "-rw-r--r--." -a "$p" = "-rw-------." ]; then + if [ "$p" != "-r--r--r--." -a "$p" = "-r--------." ]; then fail=1 fi done @@ -311,7 +311,7 @@ check_3_20="3.20 - Verify that TLS CA certificate file permissions are set to 44 tlscacert=$(pgrep -lf docker | sed -n 's/.*tlscacert=\([^s]\)/\1/p' | cut -d " " -f 1) if [ -f "$tlscacert" ]; then perms=$(ls -ld "$tlscacert" | awk '{print $1}') - if [ "$perms" = "-rw-r--r--" ]; then + if [ "$perms" = "-r--r--r--" ]; then pass "$check_3_20" else warn "$check_3_20" @@ -342,7 +342,7 @@ check_3_22="3.22 - Verify that Docker server certificate file permissions are se tlscacert=$(pgrep -lf docker | sed -n 's/.*tlscert=\([^s]\)/\1/p' | cut -d " " -f 1) if [ -f "$tlscert" ]; then perms=$(ls -ld "$tlscert" | awk '{print $1}') - if [ "$perms" = "-rw-r--r--" ]; then + if [ "$perms" = "-r--r--r--" ]; then pass "$check_3_22" else warn "$check_3_22"