github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/daemon/seccomp_disabled.go (about) 1 // +build linux,!seccomp 2 3 package daemon 4 5 import ( 6 "fmt" 7 8 "github.com/docker/docker/container" 9 "github.com/opencontainers/runtime-spec/specs-go" 10 ) 11 12 var supportsSeccomp = false 13 14 func setSeccomp(daemon *Daemon, rs *specs.Spec, c *container.Container) error { 15 if c.SeccompProfile != "" && c.SeccompProfile != "unconfined" { 16 return fmt.Errorf("seccomp profiles are not supported on this daemon, you cannot specify a custom seccomp profile") 17 } 18 return nil 19 }