-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens
Currently userspace tools can access system tokens via the dcdbas kernel module and a SMI call that will cause the platform to execute SMM code. With a goal in mind of deprecating the dcdbas kernel module a different method for accessing these tokens from userspace needs to be created. This is intentionally marked to only be readable as a process with CAP_SYS_ADMIN as it can contain sensitive information about the platform's configuration. While adding this interface I found that some tokens are duplicated. These need to be ignored from sysfs to avoid duplicate files. MAINTAINERS was missing for this driver. Add myself and Pali to maintainers list for it. Signed-off-by: Mario Limonciello <mario.limonciello@dell.com> Reviewed-by: Edward O'Callaghan <quasisec@google.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
- Loading branch information
Mario Limonciello
authored and
Darren Hart (VMware)
committed
Nov 3, 2017
1 parent
980f481
commit 33b9ca1
Showing
3 changed files
with
240 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
What: /sys/devices/platform/<platform>/tokens/* | ||
Date: November 2017 | ||
KernelVersion: 4.15 | ||
Contact: "Mario Limonciello" <mario.limonciello@dell.com> | ||
Description: | ||
A read-only description of Dell platform tokens | ||
available on the machine. | ||
|
||
Each token attribute is available as a pair of | ||
sysfs attributes readable by a process with | ||
CAP_SYS_ADMIN. | ||
|
||
For example the token ID "5" would be available | ||
as the following attributes: | ||
|
||
0005_location | ||
0005_value | ||
|
||
Tokens will vary from machine to machine, and | ||
only tokens available on that machine will be | ||
displayed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters