github.com/sams1990/dockerrepo@v17.12.1-ce-rc2+incompatible/daemon/seccomp_disabled.go (about)

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