2016-07-08 22:54:48 +00:00
|
|
|
// +build linux,!seccomp
|
2016-03-18 18:50:19 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
)
|
|
|
|
|
2016-07-08 22:54:48 +00:00
|
|
|
var supportsSeccomp = false
|
|
|
|
|
2016-03-18 18:50:19 +00:00
|
|
|
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
|
|
|
|
}
|