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")
|
|
|
|
|
2016-04-12 16:12:23 +08:00
|
|
|
// InitSeccomp does nothing because seccomp is not supported.
|
2015-06-30 02:12:54 +08:00
|
|
|
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
|
|
|
|
}
|
2016-01-14 00:51:19 +08:00
|
|
|
|
|
|
|
// IsEnabled returns false, because it is not supported.
|
|
|
|
func IsEnabled() bool {
|
|
|
|
return false
|
|
|
|
}
|