Hi Neal,
You said:
“If you open a file using ZwCreateFileXxx and use a Zw API on it, the
operation will be properly targeted and only go to filters below you.”
Did you mean to to say “FltCreateFileXxx”?
Thanks,
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neal Christiansen
Sent: Friday, November 03, 2006 12:18 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Is it safe to use Zwxxx routines in a minifilter?
My recommendation for this particular scenario is to use
ZwSetSecurityObject. One of the many issues with using the Zw APIs is that
doing recursive IO to the top of the stack can lead to failures due to stack
overflows and deadlocks. I believe it would be a rare scenario for this
particular operation since very few filters actually filter it (thought it
is possible). It is unfortunate that we had this bug for this particular
operation.
One other note about the Zw APIs. If you open a file using ZwCreateFileXxx
and use a Zw API on it, the operation will be properly targeted and only go
to filters below you.
By the way I believe the idea of rolling an IRP from a minifilter and
sending it to the file system directly and skipping filters in-between is
evil. Tony, I would be very interested to know why you needed to do this.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Wednesday, October 11, 2006 12:06 PM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Is it safe to use Zwxxx routines in a minifilter?
thanks tony…
but the problem is that even if i build a callback data using
FltallocateCallbackData() and set it to IRP_MJ_SET_SECURITY, the problem
doesnt get solved… because as pointed out by Neal in one of the posts, the
problem is with some support routines that ultimately convert this to an
irp… So, i thought that implementing a complete filter driver is the only
way out ( considering that using ZwSetSecurityObject() is not safe)… what
do u recommend?
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com