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

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/benchmarks/11818

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 0ae48aa5d8e6803b082461d9e06b38dadf0fbede290e2b79e6635e1fcde4fc93