3.21 Ensure that the /etc/sysconfig/docker file ownership is set to root:root

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 individual ownership and group ownership is correctly set to root.

Rationale:

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

Impact:

None.

Solution

You should execute the following command:

chown root:root /etc/sysconfig/docker

This sets the ownership and group ownership for the file to root.

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