~ondrak/ondras-snaps/+git/snapd:avahi-on-classic

Last commit made on 2019-05-22
Get this branch:
git clone -b avahi-on-classic https://git.launchpad.net/~ondrak/ondras-snaps/+git/snapd

Branch merges

Branch information

Name:
avahi-on-classic
Repository:
lp:~ondrak/ondras-snaps/+git/snapd

Recent commits

8c4e2b1... by Ondrej Kubik on 2018-12-18

interface: builtin: avahi-observe/control: allow slots implementation also by app snap on classic system

On classis assumption is avahi service is installed as deb and provided by the system
but this if often not the case, for example Ubuntu server does not have avahi preinstalled
Suprisingly from avahi snap metrics, clear majority of installs is on clasic systems

This is might more common use-case, so also updating utils for helper function
and all associated tests

Signed-off-by: Ondrej Kubik <email address hidden>

209a922... by Ondrej Kubik on 2019-05-22

interfaces: builtin: utils: add helper function to identify system slots

Helper functions isSlotSystemSlot and isConnectedSlotSystemSlot
Functions help to determine if permanent/connected slot is owned by the system
(core,snapd,base) snap or it is owned by the application snap

This is useful for cases when slot can be privided by system and application snap
and we need to determine what rules should be applied in particular case

Signed-off-by: Ondrej Kubik <email address hidden>

5a1bcba... by Zygmunt Krynicki on 2019-05-22

cmd/snap-confine: don't pass MS_SLAVE along with MS_BIND

While making other changes I noticed that we have a code sequence
performing bind mount and switching it to slave propagation mode:

    sc_do_mount(SNAP_MOUNT_DIR, dst, NULL, MS_BIND | MS_REC | MS_SLAVE, NULL);
    sc_do_mount("none", dst, NULL, MS_REC | MS_SLAVE, NULL);

The first call, that establishes the bind mount, does not use the
MS_SLAVE flag in practice. The kernel cannot change propagation and
crate a bind mount at the same time. This is documented in mount(2).

As such, remove the MS_SLAVE flag from the first line.

Signed-off-by: Zygmunt Krynicki <email address hidden>

6118cf8... by Michael Vogt on 2019-05-21

Merge pull request #6870 from stolowski/snap-remove-purge

cmd/snap, api, snapstate: implement "snap remove --purge"

f3f47f7... by Paweł Stołowski on 2019-05-21

Adjust help message of --purge flag. Move RemoveFlags close to Remove function.

c736f71... by Paweł Stołowski on 2019-05-21

Minor tweaks (review comments).

bdce6e5... by Paweł Stołowski on 2019-05-21

Merge branch 'master' into snap-remove-purge

cd57180... by Paweł Stołowski on 2019-05-21

Merge pull request #6859 from sergiocazzolato/add-nested-hotplug-tests-for-core

tests: new hotplug test executed on ubuntu core

910880d... by Sergio Cazzolato on 2019-05-21

Merge pull request #6860 from sergiocazzolato/add-fedora-30

tests: running tests on fedora 30

3acf0db... by Michael Vogt on 2019-05-21

Merge pull request #6867 from bboozzoo/bboozzoo/gadget-update-positioned-offset-write

gadget: offset-write: fix validation, calculate absolute position