3.1 Ensure that the docker.service file ownership is set to root:root

Information

You should verify that the docker.service file ownership and group ownership are correctly set to root

The docker.service file contains sensitive parameters that may alter the behavior of the Docker daemon. It should therefore be individually and group owned by the root user in order to ensure that it is not modified or corrupted by a less privileged user.

Solution

Step 1 : Find out the file location:

systemctl show -p FragmentPath docker.service

Step 2 : If the file does not exist, this recommendation is not applicable. If the file does exist, you should execute the command below, including the correct file path, in order to set the ownership and group ownership for the file to root

For example,

chown root:root /usr/lib/systemd/system/docker.service

Impact:

None.

See Also

https://workbench.cisecurity.org/benchmarks/16041

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(2), 800-53|AC-6(5)

Plugin: Unix

Control ID: 4ebb25ae2fe888a2a11e46281f457bea402efc1dceddbdd930b092b2df7875d4