mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
sys: Create and Rename requests should include the originating process PID
This commit is contained in:
parent
4812f5bbd0
commit
92e7dbad21
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user