mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-12 09:46:25 +08:00
a8e0185d97
Add a seccomp build tag and also support in the Makefile to add or remove build tags. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
20 lines
374 B
Go
20 lines
374 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")
|
|
|
|
// Seccomp not supported, do nothing
|
|
func InitSeccomp(config *configs.Seccomp) error {
|
|
if config != nil {
|
|
return ErrSeccompNotEnabled
|
|
}
|
|
return nil
|
|
}
|