From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Williamson Date: Thu, 23 Sep 2004 17:30:30 +0000 Subject: udev: incorrect permissions assigned to /dev/input/js* Message-Id: <1095960630.8538.11.camel@toy.local.net> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-eD+6gILzqdhrMbwiTfqT" List-Id: To: linux-hotplug@vger.kernel.org --=-eD+6gILzqdhrMbwiTfqT Content-Type: text/plain Content-Transfer-Encoding: 7bit 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. -- adamw --=-eD+6gILzqdhrMbwiTfqT Content-Disposition: attachment; filename=js_permissions.patch Content-Type: text/x-patch; name=js_permissions.patch; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit --- 00-udev.permissions.old 2004-09-23 10:02:46.596537867 -0700 +++ 00-udev.permissions 2004-09-23 10:03:17.141338005 -0700 @@ -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 --=-eD+6gILzqdhrMbwiTfqT-- ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel