The /etc/sysconfig/docker file permissions should be set to 644 or stricter

docker

Classification:

compliance

Framework:

cis-docker

Control:

3.21

이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Description

The /etc/sysconfig/docker file should have mode 644 or stricter.

Rationale

On RHEL and Amazon Linux, /etc/sysconfig/docker can set options of the Docker daemon. Mode 644 or stricter leaves only root able to write it.

Audit

Show the mode of /etc/sysconfig/docker:

stat -c '%a' /etc/sysconfig/docker

Datadog passes the rule when /etc/sysconfig/docker has mode 644 or stricter, fails it when the mode is less strict, and reports it not applicable when the path is absent.

Remediation

Set the mode:

chmod 644 /etc/sysconfig/docker

Impact

None.

Default value

The Amazon Linux package installs the file with owner root:root and mode 644.

References

  1. https://docs.docker.com/engine/daemon/