diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-06-28 14:30:34 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-29 13:18:41 +0000 |
commit | 810f2b6061c710a15aaee46c758e71ea9a2920fa (patch) | |
tree | ba81ba03ddd25963bb68b0349c25ee066d0a96be /vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go | |
parent | c09bbe8e068cb0648242a9345f2f22a6d1db90e0 (diff) | |
download | podman-810f2b6061c710a15aaee46c758e71ea9a2920fa.tar.gz podman-810f2b6061c710a15aaee46c758e71ea9a2920fa.tar.bz2 podman-810f2b6061c710a15aaee46c758e71ea9a2920fa.zip |
Start using github.com/seccomp/containers-golang
User newer seccomp bindings from the seccomp upstream
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #1021
Approved by: giuseppe
Diffstat (limited to 'vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go')
-rw-r--r-- | vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go b/vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go new file mode 100644 index 000000000..279340426 --- /dev/null +++ b/vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go @@ -0,0 +1,24 @@ +// +build !seccomp + +package seccomp // import "github.com/seccomp/containers-golang" + +import ( + "fmt" + + "github.com/opencontainers/runtime-spec/specs-go" +) + +// DefaultProfile returns a nil pointer on unsupported systems. +func DefaultProfile() *Seccomp { + return nil +} + +// LoadProfile returns an error on unsuppored systems +func LoadProfile(body string, rs *specs.Spec) (*specs.LinuxSeccomp, error) { + return nil, fmt.Errorf("Seccomp not supported on this platform") +} + +// GetDefaultProfile returns an error on unsuppored systems +func GetDefaultProfile(rs *specs.Spec) (*specs.LinuxSeccomp, error) { + return nil, fmt.Errorf("Seccomp not supported on this platform") +} |