]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg OpalPasswordDxe: Error handling enhance when input password.
authorEric Dong <eric.dong@intel.com>
Wed, 11 May 2016 02:36:05 +0000 (10:36 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 12 May 2016 05:07:20 +0000 (13:07 +0800)
commit72a05f849f18b48586f3103c7457b8d07a02c7dd
tree08bf46b50ed15a67a707bf3ecc083b8755502c84
parent5ea437716da796a9bd74b6e75962c5a1ffcac978
SecurityPkg OpalPasswordDxe: Error handling enhance when input password.

Enhance the error handling:
1. When the device is unlocked at BIOS phase and system does a warm reboot,
the device may be still in unlock status if it uses external power. For
such case, we would still popup password window to ask user input. If
user presses ESC key here, we would force the system shut down or ask
user input again to avoid security hole.
2. When user reach max retry count, force shutdown.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
SecurityPkg/Tcg/Opal/OpalPasswordDxe/OpalDriver.c