# Pastebin 90wGfR4u diff --git a/interfaces/apparmor/spec.go b/interfaces/apparmor/spec.go index 473e811ac..0fde83835 100644 --- a/interfaces/apparmor/spec.go +++ b/interfaces/apparmor/spec.go @@ -126,7 +126,7 @@ func (spec *Specification) AddSnapLayout(si *snap.Info) { for _, path := range paths { var buf bytes.Buffer l := si.Layout[path] - fmt.Fprintf(&buf, " # Layout %s\n", l) + fmt.Fprintf(&buf, " # Layout %s\n", l.String()) path := si.ExpandSnapVariables(l.Path) switch { case l.Bind != "":