mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* overlord: track security profiles for non-active snaps use this new tracking information in snapsWithSecurityProfiles the main reason to do this is to avoid code using the result of snapsWithSecurityProfiles to end up considering snaps being refreshed, in particular when the refresh is being undone, to be gone and remove connections to them the tracking code tries to be simple and is based on the relatively recent SnapLinkParticipant mechanism: * we track also in situations where the snap will go away soon * in undo situations we track the revision that ultimately we undo to even if on disk there are still the new profiles, this is correct anyway as the snap is inactive and that's the final state either way the tracking is irrelevant and cleared when the snap becomes active again to cover the new logic I had to increase the realism of some tests in ifacestate * tests/nested: add test that checks connections after a revert Add test that checks that after a revert of a boot snap connections are restored. * o/ifacestate: fix typos thanks @MiguelPires * tests: disable for now on UC16, as that uses core * tests: fix shellcheck SC1004 in connected-after-reboot-revert Co-authored-by: Alfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com> Co-authored-by: Michael Vogt <mvo@ubuntu.com>