Control: 3.16 Ensure that the Docker sock file permissions are set to 660 or more restrictively
You should verify that the Docker socket file has permissions of
660 or are configured more restrictively.
Only root and the members of the docker group should be allowed to read and write to the default Docker Unix socket. The Docker socket file should therefore have
660 or more restrictive permissions.
The following command could be executed:
chmod 660 /var/run/docker.sock
This sets the file permissions of the Docker socket file to
By default, the permissions for the Docker socket file is correctly set to
Run the control in your terminal:
steampipe check docker_compliance.control.cis_v160_3_16
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share docker_compliance.control.cis_v160_3_16
This control uses a named query:exec_permissions_660_docker_sock