SecurityPkg: Add a PCD to skip Opal password prompt
https://bugzilla.tianocore.org/show_bug.cgi?id=1484 Add a PCD for skipping password prompt and device unlock flow. so that other pre-OS applications are able to take over Opal devices unlock flow. Cc: Chao Zhang <chao.b.zhang@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Maggie Chu <maggie.chu@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
@@ -988,6 +988,10 @@ OpalDriverRequestPassword (
|
||||
|
||||
IsLocked = OpalDeviceLocked (&Dev->OpalDisk.SupportedAttributes, &Dev->OpalDisk.LockingFeature);
|
||||
|
||||
if (IsLocked && PcdGetBool (PcdSkipOpalDxeUnlock)) {
|
||||
return;
|
||||
}
|
||||
|
||||
while (Count < MAX_PASSWORD_TRY_COUNT) {
|
||||
Password = OpalDriverPopUpPasswordInput (Dev, PopUpString, NULL, &PressEsc);
|
||||
if (PressEsc) {
|
||||
|
Reference in New Issue
Block a user