*: add seccomp buildtag

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-11-29 16:59:51 +01:00
parent 947b247e4a
commit 0e4af6d69d
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
4 changed files with 31 additions and 3 deletions

View file

@ -1,3 +1,5 @@
// +build seccomp
package seccomp
import (

View file

@ -0,0 +1,15 @@
// +build !seccomp
package seccomp
import "github.com/opencontainers/runtime-tools/generate"
// LoadProfileFromStruct takes a Seccomp struct and setup seccomp in the spec.
func LoadProfileFromStruct(config Seccomp, specgen *generate.Generator) error {
return nil
}
// LoadProfileFromBytes takes a byte slice and decodes the seccomp profile.
func LoadProfileFromBytes(body []byte, specgen *generate.Generator) error {
return nil
}