3.20 Ensure that the /etc/sysconfig/docker file permissions are set to 644 or more restrictively

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

You should verify that the /etc/sysconfig/docker file permissions are correctly set to 644 or more restrictively.

Rationale:

The /etc/sysconfig/docker file contains sensitive parameters that may alter the behavior of the Docker daemon. It should therefore be writeable only by root in order to ensure that it is not modified by less privileged users.

Impact:

None.

Solution

You should execute the following command:

chmod 644 /etc/sysconfig/docker

This sets the file permissions for this file to 644.

Default Value:

This file may not be present on the system and in this case, this recommendation is not applicable.

See Also

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