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

Information

You should verify that the daemon.json 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.

Solution

You should execute the command below

chmod 644 /etc/docker/daemon.json

This sets the file permissions for this file to 644.

Impact:

None.

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/2433

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv6|14.4, CSCv7|14.6

Plugin: Unix

Control ID: 067b7adef37a997f0db79976c6b07b3feed9b1e240cbb82f39f0d4db88e6332e