Skip to content

Commit e157639

Browse files
committed
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 <nchatrad@amd.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent b94ca77 commit e157639

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Documentation/hwmon/sysfs-interface.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ the desired value must be written, note that strings which are not a number
6565
are interpreted as 0! For more on how written strings are interpreted see the
6666
"sysfs attribute writes interpretation" section at the end of this file.
6767

68+
Attribute access
69+
----------------
70+
71+
Hardware monitoring sysfs attributes are displayed by unrestricted userspace
72+
applications. For this reason, all standard ABI attributes shall be world
73+
readable. Writeable standard ABI attributes shall be writeable only for
74+
privileged users.
75+
6876
-------------------------------------------------------------------------
6977

7078
======= ===========================================

0 commit comments

Comments
 (0)