]> 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)
commit395db7c7deea6c3d22ed11af900d59b9af72997c
treeddc7a1df869c685e9e66bffc056165767464add1
parent592819fc5dc89a9e4960ed2146bd1c0c7499fb73
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