audk/SecurityPkg/Library
Philippe Mathieu-Daudé 4b026f0d5a SecurityPkg: Fix incorrect return value when File is NULL
The DxeTpmMeasureBootHandler and DxeTpm2MeasureBootHandler handlers
are SECURITY2_FILE_AUTHENTICATION_HANDLER prototype. This prototype
can not return EFI_INVALID_PARAMETER.

The prototype documentation states it returns EFI_ACCESS_DENIED if:

  "The file specified by File and FileBuffer did not authenticate,
   and the platform policy dictates that the DXE Foundation may not
   use File."

Correct the documentation, and add a early check, returning
EFI_ACCESS_DENIED when File is NULL.

Noticed while reviewing commit 6d57592740.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2020-02-10 07:09:47 +00:00
..
AuthVariableLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
DxeImageAuthenticationStatusLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
DxeImageVerificationLib SecurityPkg/DxeImageVerificationHandler: fix "defer" vs. "deny" policies 2020-01-31 09:35:31 +00:00
DxeRsa2048Sha256GuidedSectionExtractLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
DxeTcg2PhysicalPresenceLib SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
DxeTcgPhysicalPresenceLib SecurityPkg/TcgPhysicalPresenceLib: Replace the ASSERT with error code 2020-02-07 07:22:11 +00:00
DxeTpm2MeasureBootLib SecurityPkg: Fix incorrect return value when File is NULL 2020-02-10 07:09:47 +00:00
DxeTpmMeasureBootLib SecurityPkg: Fix incorrect return value when File is NULL 2020-02-10 07:09:47 +00:00
DxeTpmMeasurementLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
FmpAuthenticationLibPkcs7 SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
FmpAuthenticationLibRsa2048Sha256 SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
HashInstanceLibSha1 SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
HashInstanceLibSha256 SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
HashInstanceLibSha384 SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
HashInstanceLibSha512 SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
HashInstanceLibSm3 SecurityPkg: introduce the SM3 digest algorithm 2019-07-19 14:31:52 +02:00
HashLibBaseCryptoRouter SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest algorithm 2019-07-19 14:31:55 +02:00
HashLibTpm2 SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
PeiRsa2048Sha256GuidedSectionExtractLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
PeiTcg2PhysicalPresenceLib SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
PlatformSecureLibNull SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
SmmTcg2PhysicalPresenceLib SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tcg2PpVendorLibNull SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
TcgPpVendorLibNull SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
TcgStorageCoreLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
TcgStorageOpalLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Tpm2CommandLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Tpm2DeviceLibDTpm SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Tpm2DeviceLibRouter SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tpm2DeviceLibTcg2 SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tpm12CommandLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Tpm12DeviceLibDTpm SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Tpm12DeviceLibTcg SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
TpmCommLib SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00