My filesystem filter hooks the PreCreate rountine. When the IRP_MJ_CREATE open a remote file, I open and process another remote file at the same time ( for record some logs ).
If the process is WinWord, it would cause a “network or file permission error”. The WinWord save the file to a network path likes “\192.168.3.5\NewFolder\a.docx”.
But, if I map the “\192.168.3.5\NewFolder” to Z: . And save the to Z: . It succeeded!
What’s the difference between “\192.168…” and the mapped driver ?
Additionally, I print the logs in my minifilter driver.
Whether the path “192.168…” or the mapped driver have the same target path : “\Device\LanmanRedirector\192.168.3.5\NewFolder\a.docx”.
> Can any one tell me what’s the difference between “\192.168…” and
the mapped driver ?
I cannot, but if I was debugging this I’d look at the security context you
get with the create. When you mapped the drive, did you specify a
username/password?
> Can any one tell me what’s the difference between “\192.168…” and the mapped driver ?
Separate connections from RDR to SRV, to begin with.
More so, one connection (with numeric IP) can be over port 445 with this new “direct SMB over TCP”, while the name-based connection can be over NetBIOS and port 139.
So, for RDR, these are 2 different servers.
And yes, the credentials/security context can differ. When you map the drive, you could provide some credentials different from the current Windows user.
> My filesystem filter hooks the PreCreate rountine. When the IRP_MJ_CREATE open a remote file, I
open and process another remote file at the same time ( for record some logs ).
If the process is WinWord, it would cause a “network or file permission error”. The WinWord save
the file to a network path likes “\192.168.3.5\NewFolder\a.docx”.
Yes, I think so. May be I miss something of security context.
But I have little experience in the security.
Could you give me some hint about security context?