/etc/default/docker file ownership is set to root:root
Incident Management is now generally available! Incident Management is now generally available!
<  Back to rules search

/etc/default/docker file ownership is set to root:root

docker

Classification:

compliance

Framework:

cis-docker

Control:

3.19

Overview

Description

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

Rationale

The /etc/default/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 cannot be modified by less privileged users.

Audit

Verify that the /etc/default/docker file is individually owned and group-owned by root by running:

stat -c %U:%G /etc/default/docker | grep -v root:root 

The command should return no results.

Remediation

Execute the following command: chown root:root /etc/default/docker

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

Impact

None

Default Value

This file may not be present on the system, and in this case, this recommendation is not applicable.

References

  1. https://docs.docker.com/engine/admin/configuring/

CIS Controls

Version 6

5.1 Minimize And Sparingly Use Administrative Privileges - Minimize administrative privileges and only use administrative accounts when they are required. Implement focused auditing on the use of administrative privileged functions and monitor for anomalous behavior.