]> git.baikalelectronics.ru Git - kernel.git/commit
platform_data/mlxreg: Add new field for secured access
authorVadim Pasternak <vadimp@nvidia.com>
Sat, 2 Oct 2021 09:32:35 +0000 (12:32 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 08:41:56 +0000 (10:41 +0200)
commited4cef194ea6012270cd00d971d5422f4cb7ce4c
tree3be167e3f2715e7244146c32bc3f1cccfa23d0eb
parent0d139e984e8b97eaf9c8cad5fb796e610d4b4e2c
platform_data/mlxreg: Add new field for secured access

Extend structure 'mlxreg_core_data' with the field "secured". The
purpose of this field is to restrict access to some attributes, if
kernel is configured with security options, like:
LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY.
Access to some attributes, which for example, allow burning of some
hardware components, like FPGA, CPLD, SPI, etcetera can break the
system. In case user does not want to allow such access, it can disable
it by setting security options.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Link: https://lore.kernel.org/r/20211002093238.3771419-7-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
include/linux/platform_data/mlxreg.h