summaryrefslogtreecommitdiff
path: root/pkg/spec/config_unsupported.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/spec/config_unsupported.go')
-rw-r--r--pkg/spec/config_unsupported.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/spec/config_unsupported.go b/pkg/spec/config_unsupported.go
new file mode 100644
index 000000000..b3b05acea
--- /dev/null
+++ b/pkg/spec/config_unsupported.go
@@ -0,0 +1,12 @@
+// +build !linux
+
+package createconfig
+
+import (
+ spec "github.com/opencontainers/runtime-spec/specs-go"
+ "github.com/pkg/errors"
+)
+
+func getSeccompConfig(config *CreateConfig, configSpec *spec.Spec) (*spec.LinuxSeccomp, error) {
+ return nil, errors.New("function not supported on non-linux OS's")
+}