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:
tye1 2012-04-23 06:17:17 +00:00
parent 8c08a567c6
commit 389c8779e8
1 changed files with 3 additions and 3 deletions

View File

@ -1338,7 +1338,7 @@ ProcessVariable (
IsFirstTime = FALSE;
}
} else if ((Variable->CurrPtr != NULL) &&
(Variable->CurrPtr->Attributes & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) != 0
((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.