From 683c5a92b5ef0b438cd080cd7777807419f4ab80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Mon, 12 Jul 2021 15:22:12 +0200 Subject: [PATCH] fix socket check 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/3_docker_daemon_configuration_files.sh b/tests/3_docker_daemon_configuration_files.sh index ea7b759..49bb49b 100644 --- a/tests/3_docker_daemon_configuration_files.sh +++ b/tests/3_docker_daemon_configuration_files.sh @@ -600,7 +600,7 @@ check_3_23() { starttestjson "$id" "$desc" file="/run/containerd/containerd.sock" - if [ -f "$file" ]; then + if [ -S "$file" ]; then if [ "$(stat -c %U:%G $file)" = 'root:root' ]; then pass -s "$check" logcheckresult "PASS" @@ -625,7 +625,7 @@ check_3_24() { starttestjson "$id" "$desc" file="/run/containerd/containerd.sock" - if [ -f "$file" ]; then + if [ -S "$file" ]; then if [ "$(stat -c %a $file)" -le 660 ]; then pass -s "$check" logcheckresult "PASS"