audk/MdeModulePkg/Universal
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
..
Acpi MdeModulePkg: Supporting S3 in 64bit PEI 2022-12-19 06:12:56 +00:00
BdsDxe MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
BootManagerPolicyDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsuleOnDiskLoadPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsulePei MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
CapsuleRuntimeDxe MdeModulePkg/CapsuleRuntimeDxe: Add LoongArch64 architecture. 2022-10-14 02:16:33 +00:00
Console MdeModulePkg: remove garbage pixels in LaffStd glyphs 2023-01-20 17:39:25 +00:00
DebugPortDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugServicePei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugSupportDxe MdeModulePkg: Replace Opcode with the corresponding instructions. 2022-03-01 01:45:47 +00:00
DevicePathDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Disk MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
DisplayEngineDxe MdeModulePkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
DriverHealthManagerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DriverSampleDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EbcDxe MdeModulePkg: Consume new alignment-related macros 2023-04-01 23:11:44 +00:00
EsrtDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EsrtFmpDxe MdeModulePkg/EsrtFmpDxe: Support multiple devices with 0 HardwareInstance 2023-02-15 01:52:59 +00:00
FaultTolerantWriteDxe MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
FaultTolerantWritePei MdeModulePkg/FaultTolerantWrite: Consume Variable Flash Info 2022-05-19 06:11:20 +00:00
FileExplorerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FvSimpleFileSystemDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HiiDatabaseDxe MdeModulePkg/HiiDatabase: Fix incorrect AllocateCopyPool size 2023-09-11 01:17:33 +00:00
HiiResourcesSampleDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LegacyRegion2Dxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LoadFileOnFv2 MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LockBox/SmmLockBox MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryTest MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Metronome MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MonotonicCounterRuntimeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PCD MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
PcatSingleSegmentPciCfg2Pei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformDriOverrideDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PrintDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
RegularExpressionDxe MdeModulePkg/RegularExpressionDxe: Fix Arm build error 2023-04-28 08:55:56 +00:00
ReportStatusCodeRouter MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemRuntimeDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SectionExtractionDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SectionExtractionPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SecurityStubDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SerialDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SetupBrowserDxe MdeModulePkg/SetupBrowser: Load storage via GetVariable for EfiVarStore 2023-08-03 12:12:27 +00:00
SmbiosDxe MdeModulePkg/SmbiosDxe: Fix BcdRevision is not match with SMBIOS version 2023-09-26 23:56:43 +00:00
SmbiosMeasurementDxe MdeModulePkg SmbiosMeasurementDxe: Add Type4 CurrentSpeed to filter table 2022-09-14 10:11:53 +08:00
SmmCommunicationBufferDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
StatusCodeHandler MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TimestampDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Variable MdeModulePkg/VariablePolicy: Add more granular variable policy querying 2023-10-31 14:40:50 +00:00
WatchdogTimerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00