sys: Create and Rename requests should include the originating process PID

This commit is contained in:
Bill Zissimopoulos committed 2017-10-11 16:28:50 -07:00
1 parent 4812f5bbd0
commit 92e7dbad21
2 files changed
+4

No files matched your search

+2
View File
@@ -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 */
+2
View File
@@ -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 */