Переглянути джерело

daemon: make supportsSeccomp a const

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 роки тому
батько
коміт
717575b585

+ 1 - 1
daemon/seccomp_disabled.go

@@ -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 {

+ 1 - 1
daemon/seccomp_linux.go

@@ -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 {

+ 1 - 1
daemon/seccomp_unsupported.go

@@ -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 {