2016-11-29 15:59:51 +00:00
|
|
|
// +build !seccomp
|
|
|
|
|
|
|
|
package seccomp
|
|
|
|
|
|
|
|
import "github.com/opencontainers/runtime-tools/generate"
|
|
|
|
|
2017-02-22 00:39:31 +00:00
|
|
|
// IsEnabled returns false, when build without seccomp build tag.
|
|
|
|
func IsEnabled() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-11-29 15:59:51 +00:00
|
|
|
// 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
|
|
|
|
}
|