From 0fb450fb3e83c36a4fbf2b01c03371b868fc5857 Mon Sep 17 00:00:00 2001 From: sfu5 Date: Mon, 9 Jul 2012 09:17:00 +0000 Subject: [PATCH] Reset the platform when user choose to enroll/delete the PK variable. Signed-off-by: Fu Siyuan Reviewed-by: Dong Guo Reviewed-by: Ye Ting git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13515 6f19259b-4bc3-4df7-8a09-765794883524 --- .../SecureBootConfigDxe/SecureBootConfig.vfr | 2 +- .../SecureBootConfigDxe/SecureBootConfigImpl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr index 4e790634da..df7ff37a86 100644 --- a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr +++ b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfig.vfr @@ -158,7 +158,7 @@ formset questionid = KEY_SECURE_BOOT_DELETE_PK, prompt = STRING_TOKEN(STR_DELETE_PK), help = STRING_TOKEN(STR_DELETE_PK_HELP), - flags = INTERACTIVE, + flags = INTERACTIVE | RESET_REQUIRED, endcheckbox; endif; endform; diff --git a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c index 26fc09d52d..a680473a7d 100644 --- a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c +++ b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c @@ -2517,7 +2517,7 @@ SecureBootCallback ( NULL ); } else { - *ActionRequest = EFI_BROWSER_ACTION_REQUEST_EXIT; + *ActionRequest = EFI_BROWSER_ACTION_REQUEST_RESET; } break; -- 2.39.2