You've already forked runc
mirror of
https://github.com/opencontainers/runc.git
synced 2025-07-30 17:43:06 +03:00
No substantial code change. Note that some style errors reported by `golint` are not fixed due to possible compatibility issues. Signed-off-by: Akihiro Suda <suda.kyoto@gmail.com>
25 lines
497 B
Go
25 lines
497 B
Go
// +build !linux !cgo !seccomp
|
|
|
|
package seccomp
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/opencontainers/runc/libcontainer/configs"
|
|
)
|
|
|
|
var ErrSeccompNotEnabled = errors.New("seccomp: config provided but seccomp not supported")
|
|
|
|
// InitSeccomp does nothing because seccomp is not supported.
|
|
func InitSeccomp(config *configs.Seccomp) error {
|
|
if config != nil {
|
|
return ErrSeccompNotEnabled
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// IsEnabled returns false, because it is not supported.
|
|
func IsEnabled() bool {
|
|
return false
|
|
}
|