From cd7efa2afcd7174416225f2d94aa6112ad3e6162 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Wed, 11 Nov 2015 17:50:40 +0100 Subject: [PATCH] Fix test 3.25, correctly check for root:docker ownership, fixes #95 Signed-off-by: Andreas Stieger --- 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 4a6e655..d7394ae 100644 --- a/tests/3_docker_daemon_configuration_files.sh +++ b/tests/3_docker_daemon_configuration_files.sh @@ -387,7 +387,7 @@ fi check_3_25="3.25 - Verify that Docker socket file ownership is set to root:docker" file="/var/run/docker.sock" if [ -S "$file" ]; then - if [ "$(stat -c %u%g $file)" -eq 00 ]; then + if [ "$(stat -c %U:%G $file)" = 'root:docker' ]; then pass "$check_3_25" else warn "$check_3_25"