seccomp_unsupported.go 508 B

123456789101112131415161718192021
  1. //go:build !linux
  2. // +build !linux
  3. package daemon // import "github.com/docker/docker/daemon"
  4. import (
  5. "context"
  6. "github.com/containerd/containerd/containers"
  7. coci "github.com/containerd/containerd/oci"
  8. "github.com/docker/docker/container"
  9. )
  10. const supportsSeccomp = false
  11. // WithSeccomp sets the seccomp profile
  12. func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {
  13. return func(ctx context.Context, _ coci.Client, _ *containers.Container, s *coci.Spec) error {
  14. return nil
  15. }
  16. }