Hello,
We have a Filter Manager based file system filter driver. Since the Filter manager does not attach to the mailslot/named pipe device object, our filter driver do not see mailslot/named pipe activity and we indeed want to ignore this activity.
However, when this mailslot/named pipe is accessed remotely through LANMAN redirector we do see this activity and our filter driver needs to detect and ignore this. What’s the best way to detect this?
In PreOpCreate, we notice that FLT_RELATED_OBJECTS->FileObject->DeviceObject->DeviceType is set to FILE_DEVICE_NETWORK_FILE_SYSTEM and FLT_RELATED_OBJECTS->FileObject->FileName is of the form \servername\pipe\pipename for named pipes and \servername*MAILSLOT\mailslotname for mailslots.
We can go with pattern parsing on FileName, however, we would like to avoid it if there is much better way to do this.
Any thoughts/suggestions?
Thanks.
-Prasad