Skip to contentSkip to conversation

hwmon: Clarify scope of attribute access

PATCH New Guenter Roeck 1 participant 1 message Apr 19, 2021

Subsystems (2)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 1/1 hwmon: Clarify scope of attribute access

Hardware monitoring sysfs attributes are used and displayed by unrestricted userspace applications. Standard attributes therefore have to be world readable, since otherwise those userspace applications would either have to run as super-user or display an error. None of those makes sense. Clarify the expected scope of attribute access in the ABI document.

Cc Naveen Krishna Chatradhi <[email protected]>
---
 Documentation/hwmon/sysfs-interface.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/hwmon/sysfs-interface.rst +8 -0
index 678c9c60b5a3..13c5acb72d63 100644
@@ -65,6 +65,14 @@ the desired value must be written, note that strings which are not a number
 are interpreted as 0! For more on how written strings are interpreted see the
 "sysfs attribute writes interpretation" section at the end of this file.
 
+Attribute access
+----------------
+
+Hardware monitoring sysfs attributes are displayed by unrestricted userspace
+applications. For this reason, all standard ABI attributes shall be world
+readable. Writeable standard ABI attributes shall be writeable only for
+privileged users.
+
 -------------------------------------------------------------------------
 
 ======= ===========================================
Signature · 1 line
2.17.1