~mvo/snapd/+git/snapd-mvo:snapd-observe2

Last commit made on 2023-07-04
Get this branch:
git clone -b snapd-observe2 https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
snapd-observe2
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

e6dd55e... by Philip Meulengracht

i/policy: fix unit tests for snapd-observe

The interface is restricted and has both plug/slot

ec41dfb... by Philip Meulengracht

daemon: split out connection logic

Also add the new interface to the snap.yaml in tests

b6acec0... by Michael Vogt

daemon: open /v2/snaps{,/<name>} to snap-observe too

8911258... by Michael Vogt

many: simplify and remove "api" attribute

85c09ba... by Michael Vogt

many: add new `snapd-observe` interface with `api` attribute

b0c8a48... by Alex Murray

sandbox/apparmor: don't let vendored apparmor conflict with system (#12909)

* sandbox/apparmor: don't let vendored apparmor conflict with system

Don't enable the vendored apparmor if the system installed apparmor will try and
load policy that would be generated by the vendored apparmor and hence may
conflict with that by using newer features not supported by the system installed
apparmor (LP: 2024637)

Signed-off-by: Alex Murray <email address hidden>

* apparmor: add unit testing for SystemAppArmorLoadsSnapPolicy()

* tests: add test that checks regression in lp-2024637

* apparmor: only log non ENOENT errors in systemAppArmorLoadsSnapPolicy

* tests: fix snapd-snap test on 14.04-18.04

This commit will skip apparmor vendor testing if /lib/apparmor/functions
still references /var/lib/snapd/apparmor/.

See LP:2024637

* tests: fix typo in snapd-snap test

Signed-off-by: Alex Murray <email address hidden>

* i/apparmor: allow read of /lib/apparmor/functions in snap-update-ns

Snapd at startup will inspect this file now to ensure that the
vendored apparmor can be used. So the snap-update-ns profile
also needs to get updated as this happens during an early init().

---------

Signed-off-by: Alex Murray <email address hidden>
Co-authored-by: Michael Vogt <email address hidden>

d426006... by Alfonso Sanchez-Beato

gadget/update: set parts in laid out data from the ones matched

by EnsureVolumeCompatibility (when creating disk traits), as
LaidoutStructure.OnDiskStructure is not valid until we have the real
disk data (especially when we have a range of sizes/offsets).

9f71ad9... by Sergio Cazzolato

tests: enable opensuse leap 15.5 for spread tests (#12931)

* Enable opensuse leap 15.5 for spread tests

Also remove some opensuse leap 15.3

* fix user-session-env test

* Move spread workers to 6

10 was just for local testing

3dfc906... by Sergio Cazzolato

tests: adding spread support for ubuntu mantic (#12929)

* Adding spread support for ubuntu mantic

* include mantic in github workflow

* update qemu backend and support mantic on preseed tests helpers

2d2a1fc... by Philip Meulengracht

o/snapstate: make snapd downgrading an exclusive change

Block new changes while a snapd downgrade is in progress and block snapd from downgrading while other changes are in-flight