daemon: make supportsSeccomp a const

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-10-13 00:39:34 +02:00
parent a33cf495f2
commit 717575b585
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import (
"github.com/docker/docker/container"
)
var supportsSeccomp = false
const supportsSeccomp = false
// WithSeccomp sets the seccomp profile
func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {

View File

@ -14,7 +14,7 @@ import (
"github.com/sirupsen/logrus"
)
var supportsSeccomp = true
const supportsSeccomp = true
// WithSeccomp sets the seccomp profile
func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {

View File

@ -10,7 +10,7 @@ import (
"github.com/docker/docker/container"
)
var supportsSeccomp = false
const supportsSeccomp = false
// WithSeccomp sets the seccomp profile
func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {