SV-235865r627722_rule
V-235865
SRG-APP-000516
DKER-EE-005310
CAT I
10
chown root:docker /var/run/docker.sock
This sets the ownership to root and group-ownership to docker for default Docker socket file.
Ensure that Docker socket file ownership is set to root:docker.
Execute the below command to verify that the Docker socket file is owned by root and group-owned by docker:
stat -c %U:%G /var/run/docker.sock
If docker.sock file ownership is not set to root:docker, this is a finding.
V-235865
False
DKER-EE-005310
Ensure that Docker socket file ownership is set to root:docker.
Execute the below command to verify that the Docker socket file is owned by root and group-owned by docker:
stat -c %U:%G /var/run/docker.sock
If docker.sock file ownership is not set to root:docker, this is a finding.
M
5281