mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 03:28:38 -05:00 
			
		
		
		
	sys: Create and Rename requests should include the originating process PID
This commit is contained in:
		| @@ -579,6 +579,8 @@ NTSTATUS FspFsvolCreatePrepare( | ||||
|         /* get a pointer to the current process so that we can close the impersonation token later */ | ||||
|         Process = PsGetCurrentProcess(); | ||||
|         ObReferenceObject(Process); | ||||
|  | ||||
|         /* get the originating process ID stored in the IRP */ | ||||
|         OriginatingProcessId = IoGetRequestorProcessId(Irp); | ||||
|  | ||||
|         /* send the user-mode handle to the user-mode file system */ | ||||
|   | ||||
| @@ -1605,6 +1605,8 @@ NTSTATUS FspFsvolSetInformationPrepare( | ||||
|     /* get a pointer to the current process so that we can close the impersonation token later */ | ||||
|     Process = PsGetCurrentProcess(); | ||||
|     ObReferenceObject(Process); | ||||
|  | ||||
|     /* get the originating process ID stored in the IRP */ | ||||
|     OriginatingProcessId = IoGetRequestorProcessId(Irp); | ||||
|  | ||||
|     /* send the user-mode handle to the user-mode file system */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user