My filter is a WDF driver based on the kbfiltr sample. Like the sample, I
create a PDO in order to be able to communicate with the driver from
user-mode.
I know the sample does the following when creating the PDO:
//
// Since keyboard is secure device, we must protect ourselves from
random
// users sending ioctls and creating trouble.
//
status = WdfDeviceInitAssignSDDLString(pDeviceInit,
&SDDL_DEVOBJ_SYS_ALL_ADM_ALL);
My thought is that the control software somehow enumerates the various
devices connected to my filter and try to open a connection to each one,
which will fail with error 5 if they’re not running as Administrator. I
don’t know if that’s the case, of course, but if it is, I don’t know what
else I can do. I don’t think it’s a clever idea to let anyone talk to my
filter since they can send instructions to it that affect the filtering
process.
I guess I could try creating a test build of my driver that grants everybody
access to the PDO and see if that makes a difference, though.
Apart from the above, I don’t know what else my filter could be doing that
would require the control software to be running as Administrator.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-486087-
xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Friday, December 09, 2011 4:00 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Keyboard filter messes up control software
Since you’ve gone several days without any sort of reply, I’ll take a shot
in the
dark here because I don’t have much info to go on.
Given that you’ve said if the management software is run as administrator
it
works, I’ll guess that something you’re doing is interfering with the
device
object rights.
http://msdn.microsoft.com/en-
us/library/windows/hardware/ff540750%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-
us/library/windows/hardware/ff542063%28v=vs.85%29.aspx
I don’t know if youre a WDM or WDF driver or what you’re doing in
AddDevice. That seems like the most likely place to find your problem,
but I
could be way off here.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer