From ee1000e153e1b7c8f223bb573bb8169d2033f4af Mon Sep 17 00:00:00 2001 From: Mathieu Lecarme Date: Wed, 1 Apr 2015 21:43:45 +0200 Subject: [PATCH] Fix: typos. Docker-DCO-1.1-Signed-off-by: Mathieu Lecarme (github: athoune) --- apparmor/gen.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apparmor/gen.go b/apparmor/gen.go index 825e646d..4565f6df 100644 --- a/apparmor/gen.go +++ b/apparmor/gen.go @@ -67,12 +67,12 @@ func generateProfile(out io.Writer) error { data := &data{ Name: "docker-default", } - if tuntablesExists() { + if tunablesExists() { data.Imports = append(data.Imports, "#include ") } else { data.Imports = append(data.Imports, "@{PROC}=/proc/") } - if abstrctionsEsists() { + if abstractionsExists() { data.InnerImports = append(data.InnerImports, "#include ") } if err := compiled.Execute(out, data); err != nil { @@ -82,13 +82,13 @@ func generateProfile(out io.Writer) error { } // check if the tunables/global exist -func tuntablesExists() bool { +func tunablesExists() bool { _, err := os.Stat("/etc/apparmor.d/tunables/global") return err == nil } // check if abstractions/base exist -func abstrctionsEsists() bool { +func abstractionsExists() bool { _, err := os.Stat("/etc/apparmor.d/abstractions/base") return err == nil }