-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure the network namespace before executing jailer
Right now there is a bug when trying to start a Firecracker VM with jailer using a CNI where the VM is never joined to the correct network namespace. This is because in its current form, the CNI execution occurs when `fcinit.SetupNetwork` runs, which occurs _after_ the jailer has already created a chroot and dropped privleges. This fixes the problem by executing the `fcinit.SetupNetwork` call _before_ running jailer and removing that hook from the `FcInit` functions later on. It also passes through the UID and GID options to the `tc-redirect-tap` plugin and includes the `IgnoreUnknown` directive so that chained CNI plugins work. Signed-off-by: Dan Norris <[email protected]>
- Loading branch information
1 parent
aa97886
commit 8ba88df
Showing
2 changed files
with
40 additions
and
2 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