diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-06-26 12:13:40 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-07-02 16:41:03 +0200 |
commit | 825506d8f8d2aa5cc3b9f1b7ae6912f8c87dc0c1 (patch) | |
tree | 5718f6e7dc93738646835184981280b7cb94568b /pkg/spec/config_linux_nocgo.go | |
parent | 35ab2184a368746366bae0cde664b5d6c7af8a99 (diff) | |
download | podman-825506d8f8d2aa5cc3b9f1b7ae6912f8c87dc0c1.tar.gz podman-825506d8f8d2aa5cc3b9f1b7ae6912f8c87dc0c1.tar.bz2 podman-825506d8f8d2aa5cc3b9f1b7ae6912f8c87dc0c1.zip |
spec: move cgo stuff to their own file
so it can build without cgo since seccomp requires it.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/spec/config_linux_nocgo.go')
-rw-r--r-- | pkg/spec/config_linux_nocgo.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/spec/config_linux_nocgo.go b/pkg/spec/config_linux_nocgo.go new file mode 100644 index 000000000..10329ff3b --- /dev/null +++ b/pkg/spec/config_linux_nocgo.go @@ -0,0 +1,11 @@ +// +build linux,!cgo + +package createconfig + +import ( + spec "github.com/opencontainers/runtime-spec/specs-go" +) + +func getSeccompConfig(config *CreateConfig, configSpec *spec.Spec) (*spec.LinuxSeccomp, error) { + return nil, nil +} |