Hi,
We have a requirement to determine take different actions with a snap, based on the device model.
We can get the required info from the snapd api, but using snapd-control seems massively over-permissive for this use case.
I suppose we could use the system-files
interface with read access under /var/lib/snapd/assertions/asserts-v0/model/16/
.
Is there any other/better way that we could use to determine the systemd model name [ model
field from currently used model assertion ] ?
Just thinking a snapd-observe
interface could be interesting for very light read only access to some snapd things
Cheers Just