audk/MdeModulePkg/Include/Library
Michael Kubacki f3b2187d55 MdeModulePkg/VariablePolicy: Add more granular variable policy querying
Introduces two new APIs to EDKII_VARIABLE_POLICY_PROTOCOL:
  1. GetVariablePolicyInfo()
  2. GetLockOnVariableStateVariablePolicyInfo()

These allow a caller to retrieve policy information associated with
a UEFI variable given the variable name and vendor GUID.

GetVariablePolicyInfo() - Returns the variable policy applied to the
UEFI variable. If the variable policy is applied toward an individual
UEFI variable, that name can optionally be returned.

GetLockOnVariableStateVariablePolicyInfo() - Returns the Lock on
Variable State policy applied to the UEFI variable. If the Lock on
Variable State policy is applied to a specific variable name, that
name can optionally be returned.

These functions can be useful for a variety of purposes such as
auditing, testing, and functional flows.

Also fixed some variable name typos in code touched by the changes.

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Message-Id: <20231030203112.736-2-mikuback@linux.microsoft.com>
2023-10-31 14:40:50 +00:00
..
AuthVariableLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BmpSupportLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
BootLogoLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsuleLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CpuExceptionHandlerLib.h MdeModulePkg: Move CPU_EXCEPTION_INIT_DATA to UefiCpuPkg 2022-08-09 04:12:28 +00:00
CustomizedDisplayLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugAgentLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DisplayUpdateProgressLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
FileExplorerLib.h MdeModulePkg: Change OPTIONAL keyword usage style 2021-12-07 17:24:28 +00:00
FmpAuthenticationLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FrameBufferBltLib.h MdeModulePkg: Change OPTIONAL keyword usage style 2021-12-07 17:24:28 +00:00
HiiLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
IpmiCommandLib.h MdeModulePkg/Include: API of IPMI Get System Interface Capabilities 2023-10-26 15:39:01 +00:00
IpmiLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LockBoxLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryProfileLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
NonDiscoverableDeviceRegistrationLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
OemHookStatusCodeLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PciHostBridgeLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformBootManagerLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformHookLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformVarCleanupLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetUtilityLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SecurityManagementLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmmCorePlatformHookLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SortLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TpmMeasurementLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiBootManagerLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiHiiServicesLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VarCheckLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableFlashInfoLib.h MdeModulePkg/VariableFlashInfoLib: Add initial library 2022-05-19 06:11:20 +00:00
VariablePolicyHelperLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariablePolicyLib.h MdeModulePkg/VariablePolicy: Add more granular variable policy querying 2023-10-31 14:40:50 +00:00