mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon/seccomp_linux.go: fix error-capitalization (golint)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
92cc603036
commit
8695176d11
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts {
|
|||
|
||||
if !daemon.seccompEnabled {
|
||||
if c.SeccompProfile != "" && c.SeccompProfile != "unconfined" {
|
||||
return fmt.Errorf("Seccomp is not enabled in your kernel, cannot run a custom seccomp profile.")
|
||||
return fmt.Errorf("seccomp is not enabled in your kernel, cannot run a custom seccomp profile")
|
||||
}
|
||||
logrus.Warn("Seccomp is not enabled in your kernel, running container without default profile.")
|
||||
logrus.Warn("seccomp is not enabled in your kernel, running container without default profile")
|
||||
c.SeccompProfile = "unconfined"
|
||||
}
|
||||
if c.SeccompProfile == "unconfined" {
|
||||
|
|
Loading…
Reference in a new issue