3.18 Ensure that daemon.json file permissions are set to 644 or more restrictive

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 if the daemon.json is present its file permissions are correctly set to 644 or more restrictively.

Rationale:

The daemon.json file contains sensitive parameters that may alter the behavior of the docker daemon. Therefore it should be writeable only by root to ensure it is not modified by less privileged users.

Impact:

None.

Solution

If the file is present, you should execute the command below:

chmod 644 /etc/docker/daemon.json

This sets the file permissions for this file to 644.

Default Value:

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

See Also

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