Changeset 84395 in vbox for trunk/src/VBox
- Timestamp:
- May 20, 2020 9:31:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r83901 r84395 3040 3040 /* Hardened windows builds spawns three processes when a VM is 3041 3041 launched, the 3rd one is the one that will end up here. */ 3042 RTPROCESS p pid;3043 int rc = RTProcQueryParent(pid, &ppid);3044 if (RT_SUCCESS( rc))3045 rc = RTProcQueryParent(ppid, &ppid);3046 if ( (RT_SUCCESS( rc) && mData->mSession.mPID == ppid)3047 || rc == VERR_ACCESS_DENIED)3042 RTPROCESS pidParent; 3043 int vrc = RTProcQueryParent(pid, &pidParent); 3044 if (RT_SUCCESS(vrc)) 3045 vrc = RTProcQueryParent(pidParent, &pidParent); 3046 if ( (RT_SUCCESS(vrc) && mData->mSession.mPID == pidParent) 3047 || vrc == VERR_ACCESS_DENIED) 3048 3048 { 3049 3049 LogFlowThisFunc(("mSession.mPID => %d(%#x) - windows hardening stub\n", mData->mSession.mPID, pid));
Note:
See TracChangeset
for help on using the changeset viewer.