diff --git a/daemon/seccomp_disabled.go b/daemon/seccomp_disabled.go index 56b30b1aec..fff9cbe4c6 100644 --- a/daemon/seccomp_disabled.go +++ b/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 { diff --git a/daemon/seccomp_linux.go b/daemon/seccomp_linux.go index eea1913189..79e27bd7e5 100644 --- a/daemon/seccomp_linux.go +++ b/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 { diff --git a/daemon/seccomp_unsupported.go b/daemon/seccomp_unsupported.go index 0cd5088918..dba8763c88 100644 --- a/daemon/seccomp_unsupported.go +++ b/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 {