mirror of https://github.com/acidanthera/audk.git
Fix common AuthVariable protection issue.
Signed-off-by: Ye Ting<ting.ye@intel.com> Reviewed by: Fu, Siyuan <siyuan.fu@intel.com> Reviewed by: Dong, Guo <guo.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13204 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8c08a567c6
commit
389c8779e8
|
@ -1337,9 +1337,9 @@ ProcessVariable (
|
|||
KeyIndex = Variable->CurrPtr->PubKeyIndex;
|
||||
IsFirstTime = FALSE;
|
||||
}
|
||||
} else if ((Variable->CurrPtr != NULL) &&
|
||||
(Variable->CurrPtr->Attributes & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) != 0
|
||||
) {
|
||||
} else if ((Variable->CurrPtr != NULL) &&
|
||||
((Variable->CurrPtr->Attributes & (EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)) != 0)
|
||||
) {
|
||||
//
|
||||
// If the variable is already write-protected, it always needs authentication before update.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue