Skip to content

Commit

Permalink
fix(profile): sensors: simplify hwmon access.
Browse files Browse the repository at this point in the history
fix #628
  • Loading branch information
roddhjav committed Dec 23, 2024
1 parent b35c2a0 commit cf1d750
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions apparmor.d/profiles-s-z/sensors
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf1d750

Please sign in to comment.