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