This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rootless: fix rootless for case net=none
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 <[email protected]>
- Loading branch information
Showing
2 changed files
with
143 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters