The docker.service file permissions should be set to 644
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
Description
The docker.service unit file should have mode 644 or stricter.
Rationale
The docker.service unit sets the command line and the environment of the Docker daemon. Mode 644 or stricter leaves only root able to write it.
Audit
Find the unit file that systemd uses, then show its mode:
systemctl show -p FragmentPath docker.service
stat -c '%a' /usr/lib/systemd/system/docker.service
Datadog checks docker.service in /etc/systemd/system, /run/systemd/system, /usr/local/lib/systemd/system, /usr/lib/systemd/system, or /lib/systemd/system. It passes the rule when every copy found has mode 644 or stricter, fails it when one has a less strict mode, and reports it not applicable when there is none.
Set the mode of the unit file that systemd uses:
chmod 644 /usr/lib/systemd/system/docker.service
Impact
None.
Default value
The Docker packages install the unit files in /usr/lib/systemd/system with owner root:root and mode 644.