Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
tests: copy .real profile as .real #3227
Conversation
zyga
added this to the 2.25 milestone
Apr 24, 2017
zyga
added
the
Critical
label
Apr 24, 2017
zyga
merged commit 9108a15
into
snapcore:master
Apr 24, 2017
6 checks passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
xenial-amd64
autopkgtest finished (success)
Details
xenial-i386
autopkgtest finished (success)
Details
xenial-ppc64el
autopkgtest finished (success)
Details
yakkety-amd64
autopkgtest finished (success)
Details
zesty-amd64
autopkgtest finished (success)
Details
zyga
deleted the
zyga:fix/snap-confine-profile-for-testing
branch
Apr 24, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedApr 24, 2017
•
Edited 1 time
-
zyga
Apr 24, 2017
The snap-confine apparmor profile comes in two flavours, one plain one and one
with the
.realsuffix appended. The one suffixed.realtakes precedence atruntime. During preparation of the test execution environment we copy one or
the other into the unpacked core snap. At runtime snap uses the profile present
in the core snap as a template for creating a new profile that is specific to
the revision of the core.
There was a bug where we would copy one or the other flavour of the file into
the unpacked core snap but without the
.realsuffix. The core snap alwayscontains the file with the .real suffix so this didn't have any effect.
This patch corrects this.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com