1 //go:build !linux || !cgo || !seccomp 2 // +build !linux !cgo !seccomp 3 4 package seccomp 5 6 import ( 7 "errors" 8 9 "github.com/opencontainers/runc/libcontainer/configs" 10 ) 11 12 var ErrSeccompNotEnabled = errors.New("seccomp: config provided but seccomp not supported") 13 14 // InitSeccomp does nothing because seccomp is not supported. 15 func InitSeccomp(config *configs.Seccomp) (int, error) { 16 if config != nil { 17 return -1, ErrSeccompNotEnabled 18 } 19 return -1, nil 20 } 21 22 // Version returns major, minor, and micro. 23 func Version() (uint, uint, uint) { 24 return 0, 0, 0 25 } 26 27 // Enabled is true if seccomp support is compiled in. 28 const Enabled = false 29