seccomp_unsupported.go 491 B

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