UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

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


Overview

Finding ID Version Rule ID IA Controls Severity
V-95769 DKER-EE-005320 SV-104907r1_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 2019-09-13

Details

Check Text ( C-94599r1_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-101437r1_fix)
chmod 660 /var/run/docker.sock

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