Mattiwatti / EfiGuard

Disable PatchGuard and Driver Signature Enforcement at boot time
GNU General Public License v3.0
1.69k stars 326 forks source link

NtSetSystemEnvironmentValueEx error 0xC0000022 #108

Closed nguyenquy96 closed 8 months ago

nguyenquy96 commented 8 months ago

Question description

When i use EfiDSEFix.exe -d then throw error

Disabling DSE... CI!g_CiOptions at 0xFFFFF80168F13004. Failure: NtSetSystemEnvironmentValueEx error 0xC0000022 The EfiGuard DXE driver is either not loaded in SETVARIABLE_HOOK mode, or it is malfunctioning. AdjustCiOptions failed: 0xC0000022

infor EfiDSEFix.exe -i: SystemBootEnvironmentInformation:

SystemModuleInformation:

SystemCodeIntegrityInformation:

SystemKernelDebuggerInformation:

SystemKernelDebuggerInformationEx:

SharedUserData->KdDebuggerEnabled: 0x00

SystemKernelDebuggerFlags: 0x00

SystemCodeIntegrityPolicyInformation:

SystemIsolatedUserModeInformation:

Mattiwatti commented 8 months ago

I'm guessing you did not load EfiGuard during boot, i.e. what the error message is already telling you. However, in that case I would expect EfiDSEFix.exe to report NTSTATUS 0xC000000D (STATUS_INVALID_PARAMETER), not 0xC0000022 (STATUS_ACCESS_DENIED) like you are seeing. So, just to confirm... you did start the system with EfiGuard loaded (see: README.md#Usage)?

If yes, I'll need some more information:

nguyenquy96 commented 8 months ago

Yes ! Thank for help. I was try during boot then it's worked. Thank you !