HIDIOCKM[GS]DIRECT ioctls for the USB HID driver [PSARC/2009/329 FastTrack timeout 06/10/2009]
Alan Coopersmith
Alan.Coopersmith at sun.com
Tue Jun 2 14:38:08 PDT 2009
Darren Kenny wrote:
> So what happens if you plug in a new USB keyboard - if Xorg has dropped the
> privs, can it open that new device and do the ioctl?
>
> I've recently noticed some similar errors in snv115 with Xorg and the use of HAL
> to inform it of new HID devices:
>
> (II) config/hal: Adding input device keyboard
> (**) keyboard: always reports core events
> (**) Option "Device" "/dev/usb/hid0"
> (II) keyboard: Opened device "/dev/usb/hid0"
> (**) Option "StreamsModule" "usbkbm"
> (EE) keyboard: cannot push module 'usbkbm' onto keyboard device: Not owner
> (EE) keyboard: Unable to determine keyboard direct setting: Inappropriate ioctl
> for device
> (EE) PreInit failed for input device "keyboard"
> (II) UnloadModule: "kbd"
> (EE) config/hal: NewInputDeviceRequest failed
That's a bug that was just reported to me in private e-mail while I was out on
vacation last week. We need to fix Xorg to setuid back to root before opening
hotplugged devices.
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the opensolaris-arc
mailing list