Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit048599c

Browse files
committed
Merged PR 621: Allow ZTD recovery
Allow ZTD recovery
1 parenta027512 commit048599c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎DfciPkg/IdentityAndAuthManager/RecoverySupport.c‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ GetRecoveryPacket(
133133
gotoCLEANUP;
134134
}
135135

136-
//Check to make sure not already started.
136+
//Check to make sure not already started.
137137
if (mRecoveryChallenge!=NULL)
138138
{
139139
DEBUG((DEBUG_ERROR,"%a - Recovery Process already started. Only 1 process per boot.\n",__FUNCTION__));
@@ -172,6 +172,16 @@ GetRecoveryPacket(
172172
gotoCLEANUP;
173173
}
174174

175+
// If DFCI_RECOVERY_MASK is 0, this is a DFCI recovery request. Get permissions for ZTD_RECOVERY
176+
if (Mask==0) {
177+
Status=mDfciSettingsPermissionProtocol->GetPermission(mDfciSettingsPermissionProtocol,DFCI_SETTING_ID__ZTD_RECOVERY,&Mask);
178+
if (EFI_ERROR(Status))
179+
{
180+
DEBUG((DEBUG_ERROR,"%a - Failed to get permission for Dfci recovery %r\n",__FUNCTION__,Status));
181+
gotoCLEANUP;
182+
}
183+
}
184+
175185
if ((Mask&Identity)==0)
176186
{
177187
DEBUG((DEBUG_ERROR,"%a - Identity not supported for recovery. Id (%d) \n",__FUNCTION__,Identity));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp