Skip to content
/ linux Public

Commit 9d93d78

Browse files
vadimp-nvidiajwrdegoede
authored andcommitted
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>
1 parent bbfd79c commit 9d93d78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/platform_data/mlxreg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ struct mlxreg_core_data {
150150
bool attached;
151151
u8 regnum;
152152
u8 slot;
153+
u8 secured;
153154
};
154155

155156
/**

0 commit comments

Comments
 (0)