SV-235855r627692_rule
V-235855
SRG-APP-000516
DKER-EE-005210
CAT I
10
Set the ownership and group-ownership for the directory to root.
On CentOS host OS's, execute the following command:
chown root:root /etc/docker
On Ubuntu host OS's, execute the following command:
chown root:root /etc/default/docker
Ensure that /etc/docker directory ownership is set to root:root.
On CentOS host OS's, execute the below command to verify that the directory is owned and group-owned by root:
stat -c %U:%G /etc/docker
If root:root is not displayed, this is a finding.
On Ubuntu host OS's, execute the below command to verify that the /etc/default/docker directory ownership is set to root:root:
stat -c %U:%G /etc/default/docker
If root:root is not displayed, this is a finding.
V-235855
False
DKER-EE-005210
Ensure that /etc/docker directory ownership is set to root:root.
On CentOS host OS's, execute the below command to verify that the directory is owned and group-owned by root:
stat -c %U:%G /etc/docker
If root:root is not displayed, this is a finding.
On Ubuntu host OS's, execute the below command to verify that the /etc/default/docker directory ownership is set to root:root:
stat -c %U:%G /etc/default/docker
If root:root is not displayed, this is a finding.
M
5281