aboutsummaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/config_unsupported.go
blob: a97ae0709dc6769ac0f0466f4b47cc6942df71b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//go:build !linux
// +build !linux

package generate

import (
	"errors"

	"github.com/containers/common/libimage"
	"github.com/containers/podman/v4/pkg/specgen"
	spec "github.com/opencontainers/runtime-spec/specs-go"
	"github.com/opencontainers/runtime-tools/generate"
)

// DevicesFromPath computes a list of devices
func DevicesFromPath(g *generate.Generator, devicePath string) error {
	return errors.New("unsupported DevicesFromPath")
}

func BlockAccessToKernelFilesystems(privileged, pidModeIsHost bool, mask, unmask []string, g *generate.Generator) {
}

func supportAmbientCapabilities() bool {
	return false
}

func getSeccompConfig(s *specgen.SpecGenerator, configSpec *spec.Spec, img *libimage.Image) (*spec.LinuxSeccomp, error) {
	return nil, errors.New("not implemented getSeccompConfig")
}