Browse code

daemon: make supportsSeccomp a const

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/13 07:39:34
Showing 3 changed files
... ...
@@ -11,7 +11,7 @@ import (
11 11
 	"github.com/docker/docker/container"
12 12
 )
13 13
 
14
-var supportsSeccomp = false
14
+const supportsSeccomp = false
15 15
 
16 16
 // WithSeccomp sets the seccomp profile
17 17
 func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {
... ...
@@ -14,7 +14,7 @@ import (
14 14
 	"github.com/sirupsen/logrus"
15 15
 )
16 16
 
17
-var supportsSeccomp = true
17
+const supportsSeccomp = true
18 18
 
19 19
 // WithSeccomp sets the seccomp profile
20 20
 func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {
... ...
@@ -10,7 +10,7 @@ import (
10 10
 	"github.com/docker/docker/container"
11 11
 )
12 12
 
13
-var supportsSeccomp = false
13
+const supportsSeccomp = false
14 14
 
15 15
 // WithSeccomp sets the seccomp profile
16 16
 func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {