spiegel_podman/vendor/github.com/containers/buildah/run_unix.go
Lokesh Mandvekar 8d1f636e40
vendor update without CNI in buildah and container-libs
rootlessport: clarify RootlessCNI comment

Update the comment for the RootlessCNI conditional to clarify that
the flag is for rootless bridge networking, not CNI specifically.
The bool is set when netStatus != nil in slirp4netns and will be
removed when slirp4netns and rootlessport are fully dropped.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-03-19 20:26:21 +05:30

43 lines
1.3 KiB
Go

//go:build darwin
package buildah
import (
"errors"
"github.com/containers/buildah/define"
"github.com/opencontainers/runtime-spec/specs-go"
nettypes "go.podman.io/common/libnetwork/types"
"go.podman.io/storage"
)
// ContainerDevices is an alias for a slice of github.com/opencontainers/runc/libcontainer/configs.Device structures.
type ContainerDevices define.ContainerDevices
func setChildProcess() error {
return errors.New("function not supported on non-linux systems")
}
func runUsingRuntimeMain() {}
func (b *Builder) Run(command []string, options RunOptions) error {
return errors.New("function not supported on non-linux systems")
}
func DefaultNamespaceOptions() (NamespaceOptions, error) {
options := NamespaceOptions{
{Name: string(specs.CgroupNamespace), Host: false},
{Name: string(specs.IPCNamespace), Host: false},
{Name: string(specs.MountNamespace), Host: false},
{Name: string(specs.NetworkNamespace), Host: false},
{Name: string(specs.PIDNamespace), Host: false},
{Name: string(specs.UserNamespace), Host: false},
{Name: string(specs.UTSNamespace), Host: false},
}
return options, nil
}
// getNetworkInterface creates the network interface
func getNetworkInterface(store storage.Store) (nettypes.ContainerNetwork, error) {
return nil, nil
}