Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
interfaces/builtin: quote apparmor label #1117
Conversation
mvo5
reviewed
May 3, 2016
| @@ -36,7 +36,7 @@ import ( | ||
| // - "snap.$snap.*" if all apps are bound to the slot | ||
| func slotAppLabelExpr(slot *interfaces.Slot) []byte { | ||
| var buf bytes.Buffer | ||
| - fmt.Fprintf(&buf, "snap.%s.", slot.Snap.Name()) | ||
| + fmt.Fprintf(&buf, `"snap.%s.`, slot.Snap.Name()) |
|
Looks good - but I wonder if we should have a test for slotAppLabelExpr() if the |
|
Yeah, I'll add a test that ensures we don't forget the trailing |
zyga
referenced this pull request
May 3, 2016
Merged
interfaces/builtin: add location interface #1118
|
LGTM, thanks! |
niemeyer
merged commit 348896d
into
snapcore:master
May 4, 2016
zyga
deleted the
zyga:fix-aa-label
branch
Dec 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedMay 3, 2016
This patch adds double quotes around the apparmor label. Testing
uncovered that we should do this to make apparmor_parser happy.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com