Hi all, am hoping for some help with a couple confinement issues I am having with indicator-sensors - currently I am getting it to build successfully and it runs but it can’t lookup sensor readings from libsensors due to being unable to access
/etc/sensors3.conf and it can’t access udisks2 over dbus due to apparmor blocking:
Error: File /etc/sensors3.conf: Permission denied [udisks2] DEBUG: Error getting udisks2 client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.145" (uid=1000 pid=8256 comm="indicator-sensors -vv " label="snap.indicator-sensors.indicator-sensors (enforce)") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination=":1.3" (uid=0 pid=1082 comm="/usr/lib/udisks2/udisksd " label="unconfined")
I have added
hardware-observe to the
plugs but this doesn’t seem to have any effect: https://github.com/alexmurray/indicator-sensors/blob/master/snap/snapcraft.yaml#L31 - any ideas would be greatly appreciated as I would love for this to run with confinement in strict mode but so far it is proving challenging.