interfaces: skip connection of netlink interface on older systems
Merge pull request #10938 from mardy/netlink-trusty
This is based on top of #10941
The test fails with an error like:
2021-10-15T15:28:09.8662790Z AppArmor parser error for /var/lib/snapd/apparmor/profiles/snap.test-snapd-policy-app-consumer.netlink-audit in /var/lib/snapd/apparmor/profiles/snap.test-snapd-policy-app-consumer.netlink-audit at line 576: Invalid capability audit_read.
asserts, o/snapstate: honor IgnoreValidation flag when checking installed snaps
Merge pull request #10950 from stolowski/validation-sets/ignore-validation-on-enforce
Handle IgnoreValidation flag from snapstate when checking installed snaps against enforced validation sets. Without this, after installing/refreshing a snap that violates validation set(s) with snap install/refresh --ignore-validation, it would be impossible to enable any other validation set on the system, because the offending snap would cause validation error from InstalledSnaps() helper. Note it is not possible to simply not pass such snaps to CheckInstalledSnaps(), because that would raise constraint errors if they were required, therefore the fix requires passing a map of snaps to be ignored.
As an exception to this, we want snap validate output to indicate invalid validation sets to the user as this is the way for the user to examine the setup.