UCF STIG Viewer Logo

Docker Enterprise socket file permissions must be set to 660 or more restrictive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-235866 DKER-EE-005320 SV-235866r627725_rule High
Description
Verify that the Docker socket file has permissions of 660 or more restrictive. Only root and members of docker group should be allowed to read and write to default Docker UNIX socket. Hence, the Docket socket file must have permissions of 660 or more restrictive. By default, the permissions for Docker socket file is correctly set to 660.
STIG Date
Docker Enterprise 2.x Linux/UNIX Security Technical Implementation Guide 2021-03-26

Details

Check Text ( C-39085r627723_chk )
Ensure that Docker socket file permissions are set to 660 or more restrictive.

Execute the below command to verify that the Docker socket file has permissions of 660 or more restrictive:

stat -c %a /var/run/docker.sock

If the permissions are not set to 660, this is a finding.
Fix Text (F-39048r627724_fix)
chmod 660 /var/run/docker.sock

This sets the file permissions of the Docker socket file to 660.