Don,
If this is a bug, it would be one in the I/O Manager. It is not the
file system’s responsibility to determine the required access here, but
rather the I/O Manager (which defines the rights required to perform a
particular operation).
In the case you cite, however, the I/O Manager should fail the request
because the caller needs to have FILE_READ_ATTRIBUTES access. So,
either this is a bug in the I/O Manager (walk through
NtQueryInformationFile) or you are misreading the access that was
granted against the open file instance.
Of course, my question would be: why are you checking security here
anyway? Given that this is an OS responsibility, not an FSD
responsibility, the reason you see this failure is that you are adding a
check that is not present in NTFS or FAT. If you also relied upon the
OS to do this check, then you would see the same behavior.
Oh, FYI: this might be related to the OS version and whether or not you
are doing this operation over the network or running locally.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Looking forward to seeing you at the Next OSR File Systems Class
October, 2005 in Palo Alto, CA!
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don
Sent: Monday, June 13, 2005 4:47 PM
To: ntfsd redirect
Subject: [ntfsd] Strange permissions issue with ifstest.exe
Hi all,
I am using ifstest.exe to test my ifs. I am running across something I
cannot explain in the SimpleRenameInformationTest.
Ifstest.exe creates a file named \fileinfo\srename. It then closes the
file,
and I see a cleanup and a close.
It then opens the file again, with only Delete and Synchronize access
requested.
After that, it does a FASTIO_QUERY_BASIC_INFO for
FileAttributeInformation.
This succeeds on NTFS and it fails on my IFS.
However, I don’t understand why it succeeds on NTFS. Since the caller
hasn’t
requested any read access, it seems to me that the query should fail
with
access denied.
Can anyone tell me what I am missing here?
Thanks,
Don
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com