turbot/docker_compliance

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

Description

You should verify that the /etc/sysconfig/docker file individual ownership and group ownership is correctly set to root.

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.

Remediation

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.

Usage

Run the control in your terminal:

powerpipe control run docker_compliance.control.cis_v160_3_22

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run docker_compliance.control.cis_v160_3_22 --share

SQL

This control uses a named query:

exec_ownership_root_root_etc_sysconfig_docker

Tags