3.8 Verify that Docker environment file permissions are set to 644 or more restrictive

Information

Docker daemon leverages Docker environment file for setting Docker daemon run time
environment. If you are using Docker on a machine that uses systemd to manage services,
then the file is /etc/sysconfig/docker. On other systems, the environment file is
/etc/default/docker. Verify that the environment file permissions are correctly set to
'644' or more restrictive.

Docker environment file contains sensitive parameters that may alter the behavior of
Docker daemon during run time. Hence, it should be only writable by 'root' to maintain the
integrity of the file.

Solution

#> chmod 644 <Environment file name>
For example,#> chmod 644 /etc/sysconfig/dockerThis would set the file permissions for the environment file to '644'.

Impact-None.

Default Value-By default, the file permissions for this file is correctly set to '644'.

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: 7b2930409f5f33e467019f990c79665db38760429dc8b0912506f90c126244bc