2015-08-22 06:25:26 +08:00
|
|
|
// +build !linux !cgo !seccomp
|
2015-06-27 10:33:30 +08:00
|
|
|
|
|
|
|
package seccomp
|
2015-06-30 02:12:54 +08:00
|
|
|
|
|
|
|
import (
|
2015-08-22 06:25:26 +08:00
|
|
|
"errors"
|
|
|
|
|
2015-06-30 02:12:54 +08:00
|
|
|
"github.com/opencontainers/runc/libcontainer/configs"
|
|
|
|
)
|
|
|
|
|
2015-08-22 06:25:26 +08:00
|
|
|
var ErrSeccompNotEnabled = errors.New("seccomp: config provided but seccomp not supported")
|
|
|
|
|
2015-06-30 02:12:54 +08:00
|
|
|
// Seccomp not supported, do nothing
|
|
|
|
func InitSeccomp(config *configs.Seccomp) error {
|
2015-08-22 06:25:26 +08:00
|
|
|
if config != nil {
|
|
|
|
return ErrSeccompNotEnabled
|
|
|
|
}
|
2015-06-30 02:12:54 +08:00
|
|
|
return nil
|
|
|
|
}
|