-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Description
This issue was reported in the Kubernetes Security Audit Report
Description
The container manager used in kubelet checks for docker daemon process either via pidfile or process name. While the pidfile points to the docker daemon process PID, the dockerProcessName constant stores a docker cli name (docker) instead of docker daemon name (dockerd).
const (
// (...)
dockerProcessName = "docker"
dockerPidFile = "/var/run/docker.pid"
// (...)
)
Figure 30.1: Constants in pkg/kubelet/cm/container_manager_linux.go file.
Recommendation
Correct the docker process name to dockerd.
Anything else we need to know?:
See #81146 for current status of all issues created from these findings.
The vendor gave this issue an ID of TOB-K8S-025 and it was finding 31 of the report.
The vendor considers this issue Informational Severity.
To view the original finding, begin on page 77 of the Kubernetes Security Review Report
Environment:
- Kubernetes version: 1.13.4