2016-03-18 14:50:19 -04:00
|
|
|
// +build !seccomp,!windows
|
|
|
|
|
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2016-05-31 11:54:55 -04:00
|
|
|
"fmt"
|
|
|
|
|
2016-03-18 14:50:19 -04: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 11:54:55 -04: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 14:50:19 -04:00
|
|
|
return nil
|
|
|
|
}
|