mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
flexible paths for docker.socket as well
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
e8c6b94143
commit
606f70f83f
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ fi
|
|||
|
||||
# 3.5
|
||||
check_3_5="3.5 - Verify that docker.socket file ownership is set to root:root"
|
||||
file="/usr/lib/systemd/system/docker.socket"
|
||||
file="$(get_systemd_service_file docker.socket)"
|
||||
if [ -f "$file" ]; then
|
||||
if [ "$(stat -c %u%g $file)" -eq 00 ]; then
|
||||
pass "$check_3_5"
|
||||
|
@ -80,7 +80,7 @@ fi
|
|||
|
||||
# 3.6
|
||||
check_3_6="3.6 - Verify that docker.socket file permissions are set to 644"
|
||||
file="/usr/lib/systemd/system/docker.socket"
|
||||
file="$(get_systemd_service_file docker.socket)"
|
||||
if [ -f "$file" ]; then
|
||||
if [ "$(stat -c %a $file)" -eq 644 ]; then
|
||||
pass "$check_3_6"
|
||||
|
|
Loading…
Reference in a new issue