Skip to contentSkip to conversation

udev: incorrect permissions assigned to /dev/input/js*

PATCH Adam Williamson 1 participant 1 message Sep 23, 2004

lore
Share & tools
lore
#0 lore raw

Hi there, I'm not subscribed here so please follow-up to me directly. I use Mandrake Cooker but I think this bug also applies upstream, I don't think MDK changed this part of the permissions file. If the bug only exists in MDK's version please disregard this posting, I have submitted it there also. Anyway, I found that /etc/udev/permissions.d/00- udev.permissions gives /dev/input/js* the wrong permissions. The intended behaviour is to give keyboards 0600 to prevent keystroke snooping and joystick devices 0644 so users can use them. However, a rule is only created for /dev/js*. On modern kernels with the joydev module, usb joystick devices are /dev/input/js*. Thus there needs to be a rule to specifically give these devices 0644, or the rule intended for keyboards catches them and gives them 0600. The following patch does this on my MDK system, I hope it will apply to the stock file as well.

Signature · 1 line
adamw
00-udev.permissions renamed from 00-udev.permissions.old +1 -0
@@ -207,6 +207,7 @@ kbd:root:root:0644
 # joystick devices
 js[0-9]*:root:root:0644
 djs[0-9]*:root:root:0644
+input/js[0-9]*:root:root:0644
 
 #-------------------------------
 # gpm devices