Can you give us some hints as to your operating environment? For example,
are you working on Windows NT 4.0? Windows XP? Security behavior changes
from version to version.
When you say you get 0xC0000022, what specific function is returning this
call? The call to SeImpersonateClientEx? Or the call to read from a
network file? Or open the network file?
Problems of this sort are almost always tied into the specifics of the
implementation - hence we really need to know how you implemented things
here.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: Laura Ren [mailto:xxxxx@yahoo.ca]
Sent: Wednesday, October 02, 2002 12:25 PM
To: File Systems Developers
Subject: [ntfsd] Strange result when access network file in kernel driver by
using SeImpersonateClientEx.
Hi All,
I am writting a file system filter driver. I need to do network file read
and write some times. so I create a system thread when I recieve a usermode
IOCTL, and use the NtCurrentProcess() to get that user’s process. and create
a security context based on that thread. ( that user has the permission to
access network file).
And in the dispatch routine. I impersonate the current thread to the saved
security context. and do network file operation.
But there are some confusion situations.
- this works fine if I logon to local computer and start the app and
sendout ioctl. - but got “access denied c0000022” if i logon to the domain and start the
app and sendout ioctl( the network file is on this domain)
How to solve this?
Hope you help me out.
Thanks
Luara
Post your free ad now! http://personals.yahoo.ca
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to %%email.unsub%%