mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-26 09:44:46 +01:00
Fixes: #5985 With nydus not being its own pkg, it is challenging to implement cleanly in a virtcontainers package that isn't necesarily Linux-only. The existing code utilizes network namespace code in order to ensure nydus is launched in the host netns. This is very Linux specific - so let's make sure we only carry this out in a linux specific file. In the Darwin case, to allow for compilation at least, let's add a stub for doNetNS. Ideally the nydus and vc code can be refactored / decoupled. Signed-off-by: Eric Ernst <eric_ernst@apple.com> Signed-off-by: Danny Canter <danny@dcantah.dev>
16 lines
255 B
Go
16 lines
255 B
Go
// Copyright (c) 2023 Apple Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
//go:build !linux
|
|
|
|
package virtcontainers
|
|
|
|
import "os/exec"
|
|
|
|
// No-op on net namespace join on other platforms.
|
|
func startInShimNS(cmd *exec.Cmd) error {
|
|
return cmd.Start()
|
|
}
|