Skip to main content

More Info:

Ensure that the Container Network Interface files have ownership set to root:root

Risk Level

Low

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every control plane node, confirm the CNI networks directory and current ownership of its files:
  2. If your kubelet uses a different CNI configuration directory, identify it (this does not change anything, just informs you):
  3. On every control plane node, change ownership of all existing CNI network files under /var/lib/cni/networks to root:root:
  4. If there are subdirectories containing files, ensure recursive ownership correction:
  5. If your environment uses a different CNI networks path, repeat steps 3–4 with that path instead of /var/lib/cni/networks, using:
  6. Verification on every control plane node:
    Ensure that the output shows only root:root.
kubectl cannot modify host-level file ownership under /var/lib/cni/networks or any other CNI directories on the node. This finding must be fixed directly on every control plane node via OS-level commands (for example, chown), as described in the Manual Steps section.

Additional Reading: