You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Crash report client doesn't need full access handle to runtime when monitoring.
While monitoring the parent process CRC doesn't need a full access process handle on Windows. Open the handle using limited acccess flags instead. #rb stefan.boberg #jira UE-88601, UE-88978 #lockdown stefan.boberg #ushell-cherrypick of 11458913 by Johan.Berg #ushell-cherrypick of 11458942 by Johan.Berg [CL 11536303 by Johan Berg in 4.25 branch]
This commit is contained in:
@@ -781,8 +781,12 @@ void RunCrashReportClient(const TCHAR* CommandLine)
|
||||
// Starts the disaster recovery service. This records transactions and allows users to recover from previous crashes.
|
||||
RecoveryServicePtr = MakeShared<FRecoveryService>(MonitorPid);
|
||||
#endif
|
||||
|
||||
#if PLATFORM_WINDOWS
|
||||
// We do not need to open a full access process handle when monitoring process health.
|
||||
FProcHandle MonitoredProcess = FProcHandle(::OpenProcess(PROCESS_DUP_HANDLE | PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_TERMINATE | SYNCHRONIZE, 0, MonitorPid));
|
||||
#else
|
||||
FProcHandle MonitoredProcess = FPlatformProcess::OpenProcess(MonitorPid);
|
||||
#endif
|
||||
if (!MonitoredProcess.IsValid())
|
||||
{
|
||||
UE_LOG(CrashReportClientLog, Error, TEXT("Failed to open monitor process handle!"));
|
||||
|
||||
Reference in New Issue
Block a user