From 68e67d7f8aecfd4a53fc8a8044337ec227faf99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bombo?= Date: Fri, 27 Feb 2026 11:20:56 -0600 Subject: [PATCH] docs: Use more accurate wording for /dev hostPath behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I got lazy when I first added this section in 5c21b1f, so updating the language to specify that any non-regular host file (under /dev) qualifies, not just devices. This matches the actual code, see: https://github.com/kata-containers/kata-containers/blob/330bfff4be8913c20b9e887cecae831385131ed1/src/runtime/virtcontainers/mount.go#L57-L83 Signed-off-by: Aurélien Bombo --- docs/Limitations.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Limitations.md b/docs/Limitations.md index f592bd49a9..99e84448f4 100644 --- a/docs/Limitations.md +++ b/docs/Limitations.md @@ -187,9 +187,10 @@ different compared to `runc` containers: into the guest and exposes it directly to the container. **Mounting guest devices**: When the source path of a hostPath volume is -under `/dev`, and the path either corresponds to a host device or is not -accessible by the Kata shim, the Kata agent bind mounts the source path -directly from the *guest* filesystem into the container. +under `/dev` (or `/dev` itself), and the path corresponds to a +non-regular file (i.e., a device, directory, or any other special file) +or is not accessible by the Kata shim, the Kata agent bind mounts the +source path directly from the *guest* filesystem into the container. [runtime-config]: /src/runtime/README.md#configuration [k8s-hostpath]: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath