fix(profile): sensors: simplify hwmon access.

fix #628
This commit is contained in:
Alexandre Pujol 2024-12-23 22:48:24 +01:00
parent b35c2a0abf
commit cf1d7504f4
Failed to generate hash of commit

View file

@ -18,19 +18,12 @@ profile sensors @{exec_path} {
/etc/sensors.d/{,*} r,
/etc/sensors3.conf r,
@{sys}/bus/i2c/devices/ r,
@{sys}/class/hwmon/ r,
@{sys}/class/i2c-adapter/ r,
@{sys}/devices/**/hwmon*/{,**/} r,
@{sys}/devices/**/hwmon*/{in[0-9]_label,in[0-9]_min,in[0-9]_max} r,
@{sys}/devices/**/hwmon*/{name,temp*,*_input} r,
@{sys}/devices/**/hwmon*/**/{name,temp*,*_input} r,
@{sys}/devices/**/hwmon/hwmon@{int}/power@{int}_crit r,
@{sys}/devices/**/hwmon/hwmon@{int}/fan@{int}_{label,max,min} r,
@{sys}/devices/{,platform/*.{i2c,hdmi}/}i2c-@{int}/name r,
@{sys}/devices/@{pci}/name r,
@{sys}/devices/platform/**/power_supply/**/hwmon@{int}/curr1_max r,
@{sys}/devices/virtual/hwmon/hwmon@{int}/ r,
@{sys}/devices/virtual/hwmon/hwmon@{int}/{name,temp*} r,
@{sys}/devices/**/hwmon*/** r,
# file_inherit
deny @{PROC}/@{pid}/net/dev r,