-
tests/lib/prepare: disable shellcheck SC2119 when calling bootenv
bboozzoo committedNov 10, 2017 Shellcheck was incorrectly raising this issue: In tests/lib/prepare.sh line 211: output=$(bootenv) ^-- SC2119: Use bootenv "$@" if function's $1 should mean script's $1. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com> -
tests/lib/prepare: update debug message around bootenv calls
bboozzoo committedNov 10, 2017 Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
-
tests/lib/prepare: bootenv without arguments dumps the environment
bboozzoo committedNov 10, 2017 Calling `bootenv` provides the desired output of all bootloader environment variables. `bootenv list` would try to print the value of 'list' variable, which is not something that is needed in this case. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
-
tests/lib/prepare: use lib/boot.sh helpers for poking bootloade envir…
bboozzoo committedNov 10, 2017 …onment Use helpers from tests/lib/boot.sh instead of calling grub tools directly. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
-
tests/lib/boot: handle distribution specific grub-editenv naming
bboozzoo committedNov 10, 2017 Fedora and OpenSUSE use grub2-editenv instead of grub-editenv Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
-
Merge pull request #4183 from ikeydoherty/solus-lib64-confine
mvo5 committedNov 9, 2017 cmd/snap-confine: Respect biarch nature of libdirs
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4182 from ikeydoherty/os-release-denid
mvo5 committedNov 9, 2017 cmd/snap-confine: Ensure snap-confine is allowed to access os-release
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4176 from mvo5/fix-did-reexec-on-classic
mvo5 committedNov 9, 2017 cmd: fix re-exec bug with classic confinement for host snapd < 2.28
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4172 from mvo5/dont-fail-connection-on-module-load
mvo5 committedNov 9, 2017 interfaces/kmod: simplify loadModules now that errors are ignored
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
tests: disable xdg-open-compat test
mvo5 committedNov 9, 2017 The test relies on the "old" snapd-xdg-open deb package. However with the promotion of snapd 2.28.5 into xenial-updates the pervious snapd-xdg-open version 0.0.0~16.04 is no longer available to download. This means we can not run the test. Disable for now until we find a way to fix it.
-
tests: disable xdg-open-compat test
mvo5 committedNov 9, 2017 The test relies on the "old" snapd-xdg-open deb package. However with the promotion of snapd 2.28.5 into xenial-updates the pervious snapd-xdg-open version 0.0.0~16.04 is no longer available to download. This means we can not run the test. Disable for now until we find a way to fix it.
-
Merge remote-tracking branch 'upstream/master' into fix-did-reexec-on…
mvo5 committedNov 9, 2017 …-classic
-
Merge pull request #4186 from mvo5/disablle-xdg-compat-for-now
mvo5 committedNov 9, 2017 tests: disable xdg-open-compat test
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4059 from mvo5/test-revert-on-core
mvo5 committedNov 9, 2017 tests: add test that checks core reverts on core devices
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
tests: disable xdg-open-compat test
mvo5 committedNov 9, 2017 The test relies on the "old" snapd-xdg-open deb package. However with the promotion of snapd 2.28.5 into xenial-updates the pervious snapd-xdg-open version 0.0.0~16.04 is no longer available to download. This means we can not run the test. Disable for now until we find a way to fix it.
-
cmd/snap-confine: Respect biarch nature of libdirs
ikeydoherty committedNov 8, 2017 This follows the same bi-arching seen in other parts of the policy and ensures snap-update-ns rules are actually matched on biarch distributions employing a lib64 tree. Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit was signed with a verified signature.ikeydoherty Ikey Doherty
GPG key ID: 78E2387015C1205F Learn about signing commits -
cmd/snap-confine: Ensure snap-confine is allowed to access os-release
ikeydoherty committedNov 8, 2017 This dupes the existing rule and fixes a regression on Solus where we see a denial for the os-release file. Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit was signed with a verified signature.ikeydoherty Ikey Doherty
GPG key ID: 78E2387015C1205F Learn about signing commits -
Merge pull request #4175 from bboozzoo/bboozzoo/dirs-test-alt-root
zyga committedNov 8, 2017 dirs: use alt root when checking classic confinement support without …
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
cmd: fix re-exec bug with classic confinement for host snapd < 2.28
mvo5 committedNov 8, 2017 Older version of snapd (before 2.28) did use the SNAPD_DID_REEXEC env to check if they should re-exec or not. We need to unset it after re-exec because the host snap tool may be old and using this key. So if e.g. the host has snapd 2.27 and snapd re-execs to 2.29 then `snap run --shell classic-snap` will go into an environment where the snapd 2.27 sees this key and stops re-execing and things break in suble ways. C.f. https://forum.snapcraft.io/t/seccomp-error-calling-snap-from-another-classic-snap-on-core-candidate/2736/7
-
dirs: use c.Mkdir() instead of ioutil.TempDir() in tests
bboozzoo committedNov 8, 2017 Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
-
dirs: use alt root when checking classic confinement support without …
bboozzoo committedNov 8, 2017 …symlink workaround The test needs be isolated from local filesystem state. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
-
Merge remote-tracking branch 'upstream/master' into dont-fail-connect…
mvo5 committedNov 8, 2017 …ion-on-module-load
-
Merge pull request #4162 from jdstrand/dont-fail-connection-on-module…
mvo5 committedNov 8, 2017 …-load interfaces/kmod: treat failure to load module as non-fatal
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4167 from zyga/tweak/golint-and-comments
mvo5 committedNov 8, 2017 cmd/snap-update-ns: fix golint and some stale comments
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
interfaces/kmod: simplify loadModules now that errors are ignored
mvo5 committedNov 8, 2017 In PR snapcore#4162 we removed failing in the kmod backend when modules cannot be loaded. With this change the code can be simplified as now there is no way for loadModules() to generate an error anymore.
-
Merge pull request #4125 from pedronis/accept-proxy-store-config
mvo5 committedNov 8, 2017 corecfg: support setting proxy.store if there's a matching store assertion
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4121 from pedronis/toggle-ignore-validation-as-ne…
mvo5 committedNov 8, 2017 …eded overlord/snapstate: toggle ignore-validation as needed as we do for channel
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4151 from mvo5/fix-strict-cgroup-tests-on-pi
mvo5 committedNov 8, 2017 tests: fix security-device-cgroup* tests on devices with framebuffer
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits -
Merge pull request #4164 from jdstrand/fix-device-cgroup-for-raw-usb
zyga committedNov 8, 2017 interfaces/raw-usb: match on SUBSYSTEM, not SUBSYSTEMS
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits
-
simplify call to LoadModule(), thanks to zyga
jdstrand committedNov 7, 2017 -
cmd/snap-update-ns: fix stale comments
zyga committedNov 7, 2017 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
-
cmd/snap-update-ns: drop unneeded comment
zyga committedNov 7, 2017 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
-
cmd/snap-update-ns: UMOUNT_NOFOLLOW -> umountNoFollow
zyga committedNov 7, 2017 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
-
cmd/snap-update-ns: golint {U,G}id -> {U,G}ID
zyga committedNov 7, 2017 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>