]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens
authorMario Limonciello <mario.limonciello@dell.com>
Wed, 1 Nov 2017 19:25:30 +0000 (14:25 -0500)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 3 Nov 2017 23:33:59 +0000 (16:33 -0700)
commit278be82a61570afae4d79abf20fcf924e567fda6
treeddc7a1df869c685e9e66bffc056165767464add1
parent9733665cfe12665ee6e9560cc304759e90c3a892
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>
Documentation/ABI/testing/sysfs-platform-dell-smbios [new file with mode: 0644]
MAINTAINERS
drivers/platform/x86/dell-smbios.c