From db3c5441b1cf39577699567732eba7f97c20c214 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 2 Feb 2015 08:39:26 +0000 Subject: [PATCH] SecurityPkg Variable: Before EndOfDxe, just record the current boot VarErrorFlag to local variable. And leave the variable error flag in NV flash as the last boot variable error flag. After EndOfDxe in InitializeVarErrorFlag (), the variable error flag in NV flash will be initialized to this local current boot variable error flag. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16686 6f19259b-4bc3-4df7-8a09-765794883524 --- SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c index 83d69899f7..32a218022d 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c @@ -63,6 +63,8 @@ BOOLEAN mEnableLocking = TRUE; // VAR_ERROR_FLAG mCurrentBootVarErrFlag = VAR_ERROR_FLAG_NO_ERROR; +/** + SecureBoot Hook for auth variable update. @param[in] VariableName Name of Variable to be found.