Permalink
Switch branches/tags
Commits on Nov 10, 2017
  1. tests/lib/prepare: disable shellcheck SC2119 when calling bootenv

    bboozzoo committed Nov 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>
  2. tests/lib/prepare: update debug message around bootenv calls

    bboozzoo committed Nov 10, 2017
    Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
  3. tests/lib/prepare: bootenv without arguments dumps the environment

    bboozzoo committed Nov 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>
  4. tests/lib/prepare: use lib/boot.sh helpers for poking bootloade envir…

    bboozzoo committed Nov 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>
  5. tests/lib/boot: handle distribution specific grub-editenv naming

    bboozzoo committed Nov 10, 2017
    Fedora and OpenSUSE use grub2-editenv instead of grub-editenv
    
    Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Commits on Nov 9, 2017
  1. Merge pull request #4183 from ikeydoherty/solus-lib64-confine

    mvo5 committed Nov 9, 2017
    cmd/snap-confine: Respect biarch nature of libdirs
  2. Merge pull request #4182 from ikeydoherty/os-release-denid

    mvo5 committed Nov 9, 2017
    cmd/snap-confine: Ensure snap-confine is allowed to access os-release
  3. Merge pull request #4176 from mvo5/fix-did-reexec-on-classic

    mvo5 committed Nov 9, 2017
    cmd: fix re-exec bug with classic confinement for host snapd < 2.28
  4. Merge pull request #4172 from mvo5/dont-fail-connection-on-module-load

    mvo5 committed Nov 9, 2017
     interfaces/kmod: simplify loadModules now that errors are ignored
  5. tests: disable xdg-open-compat test

    mvo5 committed Nov 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.
  6. tests: disable xdg-open-compat test

    mvo5 committed Nov 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.
  7. Merge pull request #4186 from mvo5/disablle-xdg-compat-for-now

    mvo5 committed Nov 9, 2017
    tests: disable xdg-open-compat test
  8. Merge pull request #4059 from mvo5/test-revert-on-core

    mvo5 committed Nov 9, 2017
    tests: add test that checks core reverts on core devices
  9. tests: disable xdg-open-compat test

    mvo5 committed Nov 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.
Commits on Nov 8, 2017
  1. cmd/snap-confine: Respect biarch nature of libdirs

    ikeydoherty committed Nov 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>
  2. cmd/snap-confine: Ensure snap-confine is allowed to access os-release

    ikeydoherty committed Nov 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>
  3. Merge pull request #4175 from bboozzoo/bboozzoo/dirs-test-alt-root

    zyga committed Nov 8, 2017
    dirs: use alt root when checking classic confinement support without …
  4. cmd: fix re-exec bug with classic confinement for host snapd < 2.28

    mvo5 committed Nov 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
  5. dirs: use c.Mkdir() instead of ioutil.TempDir() in tests

    bboozzoo committed Nov 8, 2017
    Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
  6. dirs: use alt root when checking classic confinement support without …

    bboozzoo committed Nov 8, 2017
    …symlink workaround
    
    The test needs be isolated from local filesystem state.
    
    Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
  7. Merge remote-tracking branch 'upstream/master' into dont-fail-connect…

    mvo5 committed Nov 8, 2017
    …ion-on-module-load
  8. Merge pull request #4162 from jdstrand/dont-fail-connection-on-module…

    mvo5 committed Nov 8, 2017
    …-load
    
    interfaces/kmod: treat failure to load module as non-fatal
  9. Merge pull request #4167 from zyga/tweak/golint-and-comments

    mvo5 committed Nov 8, 2017
    cmd/snap-update-ns: fix golint and some stale comments
  10. interfaces/kmod: simplify loadModules now that errors are ignored

    mvo5 committed Nov 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.
  11. go fmt

    mvo5 committed Nov 8, 2017
  12. Merge pull request #4125 from pedronis/accept-proxy-store-config

    mvo5 committed Nov 8, 2017
    corecfg:  support setting proxy.store if there's a matching store assertion
  13. Merge pull request #4121 from pedronis/toggle-ignore-validation-as-ne…

    mvo5 committed Nov 8, 2017
    …eded
    
    overlord/snapstate: toggle ignore-validation as needed as we do for channel
  14. Merge pull request #4151 from mvo5/fix-strict-cgroup-tests-on-pi

    mvo5 committed Nov 8, 2017
    tests: fix security-device-cgroup* tests on devices with framebuffer
  15. Merge pull request #4164 from jdstrand/fix-device-cgroup-for-raw-usb

    zyga committed Nov 8, 2017
    interfaces/raw-usb: match on SUBSYSTEM, not SUBSYSTEMS
Commits on Nov 7, 2017
  1. cmd/snap-update-ns: fix stale comments

    zyga committed Nov 7, 2017
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  2. cmd/snap-update-ns: drop unneeded comment

    zyga committed Nov 7, 2017
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  3. cmd/snap-update-ns: UMOUNT_NOFOLLOW -> umountNoFollow

    zyga committed Nov 7, 2017
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  4. cmd/snap-update-ns: golint {U,G}id -> {U,G}ID

    zyga committed Nov 7, 2017
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>