In case PcdBootRestrictToFirmware is set, disable loading EFI variables
from NvVars file.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
{\r
EFI_STATUS Status;\r
\r
- if (FeaturePcdGet (PcdSecureBootSupported)) {\r
+ if (FeaturePcdGet (PcdSecureBootSupported) ||\r
+ FeaturePcdGet (PcdBootRestrictToFirmware))\r
+ {\r
return EFI_UNSUPPORTED;\r
}\r
\r
\r
[Pcd]\r
gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootSupported\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdBootRestrictToFirmware\r
\r
[Guids]\r
gEfiFileInfoGuid\r