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
This commit is contained in:
Daniel J Walsh
2018-06-28 14:30:34 -04:00
committed by Atomic Bot
parent c09bbe8e06
commit 810f2b6061
8 changed files with 964 additions and 1 deletions

View File

@@ -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")
}