~mvo/snapd/+git/snapd-mvo:refactor-sc-main-6

Last commit made on 2019-04-05
Get this branch:
git clone -b refactor-sc-main-6 https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
refactor-sc-main-6
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

f24e333... by Michael Vogt

snap-confine: inv->rootfs_dir must not end with '/'

The rootfs_dir is also used with "readlink()" which will fail
for something like /snap/core/current/ - so we cannot have the
trailing "/".

4f911c7... by Michael Vogt

snap-confine: imporve comment on sc_check_rootfs_dir

c6ece32... by Michael Vogt

snap-confine: init rootfs_dir in sc_init_invocation() and check/modify in sc_check_rootfs_dir()

a08f17f... by Michael Vogt

snap-confine: use inv->rootfs_dir in sc_inspect_and_maybe_discard_stale_ns() too (thanks Samuele)

bc4792c... by Michael Vogt

snap-confine: set rootfs_dir in sc_invocation struct

As suggested by Samuele in
https://github.com/snapcore/snapd/pull/6583/files#r269986723
we can calculate and check the rootfs_dir that is derived from
the base snap early now. This also means we have one central
place for checking for the base_snap rootdir and to apply any
fallbacks.

5543830... by Michael Vogt

Merge pull request #6583 from zyga/tweak/refactor-sc-main-5

cmd/snap-confine: move ubuntu-core fallback checks

44cf728... by Maciej Borzecki

Merge pull request #6686 from mvo5/shellcheck-mock-madness

testutil: fix MockCmd for shellcheck 0.5

3b0dce4... by Michael Vogt

testutil: fix MockCmd for shellcheck 0.5

With shellcheck 0.5 there is an error that
```
printf "\0"
```
should be use single quotes (SC1117). This PR fixes this.

a16857b... by Maciej Borzecki

Merge pull request #6682 from bboozzoo/bboozzoo/gadget-separate-package

snap, gadget: move gadget read/validation into separate package, tweak naming

eb05281... by Maciej Borzecki

Merge pull request #6656 from sergiocazzolato/tests-split-spread-execution-on-2-jobs

tests: split travis spread execution in 2 jobs for ubuntu and non ubuntu systems