DKER-EE-005320 - Docker Enterprise socket file permissions must be set to 660 or more restrictive.

Information

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.

Solution

chmod 660 /var/run/docker.sock

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Docker_Enterprise_2-x_Linux-UNIX_V1R1_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CAT|I, CCI|CCI-000366, CSCv6|3.1, Rule-ID|SV-104907r1_rule, STIG-ID|DKER-EE-005320, Vuln-ID|V-95769

Plugin: Unix

Control ID: 0ede5c80f5abb23c6efc7c0f40d70908945cd978c38d2ce525719820304ef635