No, it still needs read access to various entries under /sys/devices
. Adding system-files
with read: [/etc/sensors3.conf]
and manually connecting still shows N/A
in cpu temperature and battery status, with a pretty generic warning message Error: Permission denied
, and lots of apparmor denials such as:
Log: apparmor="DENIED" operation="open" profile="snap.htop.htop" name="/sys/devices/pci0000:00/0000:00:1f.4/i2c-0/name" pid=108530 comm="htop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Log: apparmor="DENIED" operation="open" profile="snap.htop.htop" name="/sys/devices/platform/USBC000:00/power_supply/ucsi-source-psy-USBC000:001/hwmon8/name" pid=108530 comm="htop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Log: apparmor="DENIED" operation="open" profile="snap.htop.htop" name="/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon6/name" pid=108530 comm="htop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Log: apparmor="DENIED" operation="open" profile="snap.htop.htop" name="/sys/devices/platform/coretemp.0/hwmon/hwmon4/name" pid=108530 comm="htop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Log: apparmor="DENIED" operation="open" profile="snap.htop.htop" name="/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1b/PNP0C09:00/ACPI0003:00/power_supply/AC/hwmon0/name" pid=108530 comm="htop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Log: apparmor="DENIED" operation="open" profile="snap.htop.htop" name="/sys/devices/virtual/thermal/thermal_zone0/hwmon1/name" pid=108530 comm="htop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0