Hi Tony,
Thanks for your interest. I had not been using DeviceTree before,
but now I see that \Device\HGFS has the EXCLUSIVE flag set, along with
DEVICE_HAS_NAME and NEITHER_IO.
Since it’s a named device and has a symlink, I thought it might
already have a handle open to it. Upon failing
IoGetDeviceObjectPointer(), I walked through the handle list using
ZwQuerySystemInformation(). Based on this struct:
typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO {
USHORT UniqueProcessId;
USHORT CreatorBackTraceIndex;
UCHAR ObjectTypeIndex;
UCHAR HandleAttributes;
USHORT HandleValue;
PVOID Object;
ULONG GrantedAccess;
} SYSTEM_HANDLE_TABLE_ENTRY_INFO, *PSYSTEM_HANDLE_TABLE_ENTRY_INFO;
I looked up the object names with ObQueryNameString(). I did get
sensible names. Unfortunately, none of them pertained to the HGFS driver.
By the way, \Device\HGFS is some unrecognized device object type.
However, there is another device object, \Device\hgfsInternal, which
does show up in DeviceTree and SoftICE. It doesn’t have exclusive
access, and is listed as a file system driver. DeviceTree does not show
a dependency between \Device\HGFS and \Device\hgfsInternal. Among the
characteristics for \Device\hgfsInternal, FILE_DEVICE_IS_MOUNTED is
set. Unfortunately, when I try to connect to it with
IoGetDeviceObjectPointer(), I get STATUS_OBJECT_NAME_INVALID. There
appears to be no symlink for \Device\hgfsInternal.
Hemonth
Tony Mason wrote:
Using DeviceTree, can you tell us what the flags are on that device
object?
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Hemonth Rao
Sent: Monday, January 31, 2005 1:51 PM
To: ntfsd redirect
Subject: Re: [ntfsd] File access in VMWare
Hi Dmitriy,
I am interested in the same thing. When I try to get the device
object pointer to \Device\HGFS or ??\HGFS via
IoGetDeviceObjectPointer(), I get STATUS_ACCESS_DENIED. This is
different than other filesystems. I’m doing it in the context of a
system thread.
Does the HGFS driver allow only exclusive access? I’m only
interested in the file object / device object for it.
Hemonth
Dmitriy Budko wrote:
>Your filter driver should be able to filter HGFS file system too,
>it’s just another file system for for the filter.
>
>Dmitriy Budko, VMware
>
>
>
>
>
>>-----Original Message-----
>>From: xxxxx@lists.osr.com
>>[mailto:xxxxx@lists.osr.com]On Behalf Of AFei
>>Sent: Wednesday, January 26, 2005 6:41 PM
>>To: Windows File Systems Devs Interest List
>>Subject: Re:[ntfsd] File access in VMWare
>>
>>
>>The filter driver runs in the VM, what I’m doing is testing the filter
>>driver
>>on different OS platfroms. This problem happens only on the VMWare
>>share folder “.host\**”.
>>So the file actually goes through the network driver hgfs.sys
>>(“backdoor”),
>>then was saved to the host’s hard drive, the VM local file
>>system didn’t see
>>this
>>operation at all, it makes sense. thanks a lot.
>>
>>
>>
>>
>—
>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
>
>
>
>
>
>
>
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
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