mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
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:
parent
c5cb9cdc5c
commit
cd7efa2afc
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue