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

This commit is contained in:
Bill Zissimopoulos 2017-10-11 16:28:50 -07:00
parent 4812f5bbd0
commit 92e7dbad21
2 changed files with 4 additions and 0 deletions

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 */

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 */