2016-03-18 18:50:19 +00:00
|
|
|
// +build !seccomp,!windows
|
|
|
|
|
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2016-05-31 15:54:55 +00:00
|
|
|
"fmt"
|
|
|
|
|
2016-03-18 18:50:19 +00:00
|
|
|
"github.com/docker/docker/container"
|
|
|
|
"github.com/opencontainers/specs/specs-go"
|
|
|
|
)
|
|
|
|
|
|
|
|
func setSeccomp(daemon *Daemon, rs *specs.Spec, c *container.Container) error {
|
2016-05-31 15:54:55 +00:00
|
|
|
if c.SeccompProfile != "" && c.SeccompProfile != "unconfined" {
|
|
|
|
return fmt.Errorf("seccomp profiles are not supported on this daemon, you cannot specify a custom seccomp profile")
|
|
|
|
}
|
2016-03-18 18:50:19 +00:00
|
|
|
return nil
|
|
|
|
}
|