reg/vendor/github.com/docker/docker-ce/components/engine/daemon/seccomp_disabled.go
Jess Frazelle ab6c553e6b
update deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:41:43 -05:00

20 lines
504 B
Go

// +build linux,!seccomp
package daemon // import "github.com/docker/docker/daemon"
import (
"fmt"
"github.com/docker/docker/container"
"github.com/opencontainers/runtime-spec/specs-go"
)
var supportsSeccomp = false
func setSeccomp(daemon *Daemon, rs *specs.Spec, c *container.Container) error {
if c.SeccompProfile != "" && c.SeccompProfile != "unconfined" {
return fmt.Errorf("seccomp profiles are not supported on this daemon, you cannot specify a custom seccomp profile")
}
return nil
}