Fedora Account System
Red Hat Associate
Red Hat Customer
Optional LinkLogs (link-logs.crio.io) bind-mounts /var/log/pods into an emptyDir with MS_BIND|MS_RDONLY and no remount, so the workload still gets a writable view. A UID 0, non-privileged pod can symlink the next kubelet attempt log path to an existing host file. CRI-O keeps valid symlinks; conmon, started from the privileged CRI-O service, opens that path for append without O_NOFOLLOW and writes the payload. Requires the annotation on the runtime handler allowlist, pod create, and effective UID 0 (baseline allows this; restricted / typical OpenShift SCC often do not). SELinux may block some targets. Code since v1.26.4 / v1.27.1 / v1.28.0; default handlers that do not allow the annotation are not reachable. Workaround: do not allow link-logs.crio.io; fix by forcing the workload emptyDir OCI mounts read-only while leaving CRI-O's host-side log linking writable.