Fix test 3.25, correctly check for root:docker ownership, fixes #95

Signed-off-by: Andreas Stieger <astieger@suse.com>
This commit is contained in:
Andreas Stieger 2015-11-11 17:50:40 +01:00
parent c5cb9cdc5c
commit cd7efa2afc

View file

@ -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"