summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/config_unsupported.go
diff options
context:
space:
mode:
authorDoug Rabson <dfr@rabson.org>2022-08-26 10:04:18 +0100
committerDoug Rabson <dfr@rabson.org>2022-08-30 11:23:58 +0100
commit39880670cdde8482baf69e6a0f98b33bf34669f3 (patch)
tree248bd711f63e9a7ee8a3f53502483351b1f74f8c /pkg/specgen/generate/config_unsupported.go
parent0166feef2a0205967eb95867a7d953f9171b27b7 (diff)
downloadpodman-39880670cdde8482baf69e6a0f98b33bf34669f3.tar.gz
podman-39880670cdde8482baf69e6a0f98b33bf34669f3.tar.bz2
podman-39880670cdde8482baf69e6a0f98b33bf34669f3.zip
specgen/generate: Move SpecGenToOCI, WeightDevices to oci_linux.go and add stubs.
Almost all of SpecGenToOCI deals with linux-specific aspects of the runtime spec. Rather than try to factor this out piecemeal, I think it is cleaner to move the whole function along with its implementation helper functions. This also meams we don't need non-linux stubs for functions called from oci_linux.go [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
Diffstat (limited to 'pkg/specgen/generate/config_unsupported.go')
-rw-r--r--pkg/specgen/generate/config_unsupported.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/pkg/specgen/generate/config_unsupported.go b/pkg/specgen/generate/config_unsupported.go
deleted file mode 100644
index a97ae0709..000000000
--- a/pkg/specgen/generate/config_unsupported.go
+++ /dev/null
@@ -1,29 +0,0 @@
-//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")
-}