[lkml]   [2006]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: input/eventX permissions, force feedback
Hi Anssi,

On 7/18/06, Anssi Hannula <> wrote:
> Currently most distributions have /dev/input/event* strictly as 0600
> root:root or 0640 root:root. The user logged in will not have rights to
> the device, unlike /dev/input/js*, as he could read all passwords from
> the keyboard device.
> This is a problem, because /dev/input/event* is used for force feedback
> and should therefore be user-accessible.
> I can think of the following solutions to this problem:
> 1. Some creative udev rule to chmod /dev/input/event* less strictly when
> it has a /dev/input/js* and is thus a gaming device.
> 2. Some creative udev rule to chmod /dev/input/event* more strictly when
> it is a keyboard.
> 3. Have another force feedback interface also in /dev/input/js*.

You can do it in udev looking either at MODALIAS or at EV and ABS
environment variables. I think it is pretty safe to say that a device
with EV_ABS, EV_FF, ABS_X and ABS_Y is a force-feedback joystick-type
device and not a keyboard.

Another solution would be to relax permissions if user is also console
owner (home box installation).

One thing is for sure - I do not like #3 at all ;)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-07-18 14:23    [W:0.058 / U:2.268 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site