]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit33b9ca1e53b45f7cacdba9d4fba5cb1387b26827
treeddc7a1df869c685e9e66bffc056165767464add1
parent980f481d63f57bb62ac171a66294de3e14d52b77
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