mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-20 22:00:23 -04:00
20 lines
460 B
Go
20 lines
460 B
Go
![]() |
// +build linux,!seccomp
|
||
|
|
||
|
package daemon
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/docker/docker/container"
|
||
|
"github.com/opencontainers/runtime-spec/specs-go"
|
||
|
)
|
||
|
|
||
|
var supportsSeccomp = false
|
||
|
|
||
|
func setSeccomp(daemon *Daemon, rs *specs.Spec, c *container.Container) error {
|
||
|
if c.SeccompProfile != "" && c.SeccompProfile != "unconfined" {
|
||
|
return fmt.Errorf("seccomp profiles are not supported on this daemon, you cannot specify a custom seccomp profile")
|
||
|
}
|
||
|
return nil
|
||
|
}
|