AmpereComputing / ampere-lts-kernel---DEPRECATED

Linux 5.4 and 5.10 Longterm kernel (LTS) with Ampere patches
20 stars 17 forks source link

[NOUPSTREAM] hwmon: restrict access to root #106

Open adamliyi opened 2 years ago

adamliyi commented 2 years ago

5.15 kernel patches:

  1. hwmon: Add Ampere Altra HW monitor driver
  2. hwmon: (altra) restrict energy measurements to root access
  3. hwmon: (xgene) restrict power measurements to root access
  4. fixup! hwmon: (xgene) restrict power measurements to root access

5.4 kernel patches: a7b1988e888d fixup! hwmon: (xgene) restrict power measurements to root access 59ebf72e174c hwmon: (altra) restrict energy measurements to root access df8aa0fe5dba hwmon: (xgene) restrict power measurements to root access

5.10 kernel patches: 908a07aae3e6 fixup! hwmon: (xgene) restrict power measurements to root access 7ab9d3af5a84 hwmon: (altra) restrict energy measurements to root access 4ad04529e406 hwmon: (xgene) restrict power measurements to root access

adamliyi commented 2 years ago

0002-hwmon-altra-restrict-energy-measurements-to-root-acc.patch.txt

0003-fixup-hwmon-xgene-restrict-power-measurements-to-roo.patch.txt

0001-hwmon-xgene-restrict-power-measurements-to-root-acce.patch.txt

These three patches restrict hwmon driver access right to root. Backport to 5.4 and 5.10 kernel, with unit test.