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