kyrofa
February 6, 2023, 4:22pm
1
We recently had a bug logged against our snap asking if it could read temperature data from the system. The denial looks like this:
Jan 5 11:35:31 ubuntunextcloud kernel: [1211761.978032] audit: type=1400 audit(1672918531.015:882155): apparmor="DENIED" operation="open" profile="snap.nextcloud.php-fpm" name="/sys/devices/virtual/thermal/thermal_zone0/type" pid=1855426 comm="php-fpm" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
A quick grep leads me to believe that snapd doesn’t have an interface that covers this, but I thought I’d ask the experts. Anyone know?
ogra
February 7, 2023, 9:22am
2
i’d expect this to be in system-observe or hardware-observe normally … if it is not covered in either of them it smells like a bug …
The issue persists on my Nextcloud 27.0.2snap1.
opened 11:56AM - 05 Jan 23 UTC
closed 12:46AM - 15 Apr 23 UTC
Describe the bug
In the system monitoring, no temperature is shown in the corresponding area.
To Reproduce
Go to Settings > System, the temperature...
Stale
Can it be resolved?
Regards
hvbakel
September 20, 2023, 9:14pm
4
Other confined snaps such as btop and htop read and display temperature data correctly. A quick look at the btop yaml (https://github.com/aristocratos/btop/blob/main/snap/snapcraft.yaml ) suggests that this indeed resides in system-observe or hardware-observe. Not sure if libsensors is also needed for certain types of sensors.