3.26 Verify that Docker socket file permissions are 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.

Solution

#> chmod 660 /var/run/docker.sock
This would set the file permissions of the Docker socket file to '660'.

Impact-None.

Default Value-By default, the permissions for Docker socket file is correctly set to '660'.

See Also

https://workbench.cisecurity.org/files/514

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv6|3.1

Plugin: Unix

Control ID: efd58fa0d7f33961076642a7651216942cb64e9a49cf31d7a13c4e2d5ae349c3