seccomp_disabled.go 453 B

12345678910111213141516171819
  1. // +build linux,!seccomp
  2. package daemon
  3. import (
  4. "fmt"
  5. "github.com/docker/docker/container"
  6. "github.com/opencontainers/specs/specs-go"
  7. )
  8. var supportsSeccomp = false
  9. func setSeccomp(daemon *Daemon, rs *specs.Spec, c *container.Container) error {
  10. if c.SeccompProfile != "" && c.SeccompProfile != "unconfined" {
  11. return fmt.Errorf("seccomp profiles are not supported on this daemon, you cannot specify a custom seccomp profile")
  12. }
  13. return nil
  14. }