mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-02 22:14:27 +01:00
When kata-runtime was invoked as rootless by podman with net=none, an empty net namespace path is provided. kata-runtime was then trying to create a new network namespace and bind-mounting it under /var/run/netns, resulting in a permission error. Instead, with this commit, the runtime checks if it is running rootless and instead creates network namespace bind mount under rootless directory instead. Fixes #2319 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
Kata utilities packages
The katautils package contains useful functions that are shared by various
parts of the codebase, including the runtime and the container v2 shim.