From 0ba17ade477cda3cac9419f6b00996b3b45135c5 Mon Sep 17 00:00:00 2001 From: sfu5 Date: Fri, 17 May 2013 08:05:01 +0000 Subject: =?UTF-8?q?Fix=20a=20bug=20that=20=E2=80=9CSecureBoot=E2=80=9D=20v?= =?UTF-8?q?araible=20will=20be=20updated=20to=20NV+AT=20attribute=20incorr?= =?UTF-8?q?ectly.=20Signed-off-by:=20Fu=20Siyuan=20?= =?UTF-8?q?=20Reviewed-by:=20Ni=20Ruiyu=20=20Reviewed-?= =?UTF-8?q?by:=20Dong=20Guo=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14375 6f19259b-4bc3-4df7-8a09-765794883524 --- SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'SecurityPkg/VariableAuthenticated/RuntimeDxe') diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c index 440ede9144..7da0d63aba 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c @@ -675,7 +675,6 @@ UpdatePlatformMode ( { EFI_STATUS Status; VARIABLE_POINTER_TRACK Variable; - UINT32 VarAttr; UINT8 SecureBootMode; UINT8 SecureBootEnable; UINTN VariableDataSize; @@ -736,13 +735,12 @@ UpdatePlatformMode ( } } - VarAttr = EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS; Status = UpdateVariable ( EFI_SECURE_BOOT_MODE_NAME, &gEfiGlobalVariableGuid, &SecureBootMode, sizeof(UINT8), - VarAttr, + EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS, 0, 0, &Variable, -- cgit v1.2.3