public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* input/eventX permissions, force feedback
@ 2006-07-18  9:42 Anssi Hannula
  2006-07-18 12:20 ` Dmitry Torokhov
  0 siblings, 1 reply; 7+ messages in thread
From: Anssi Hannula @ 2006-07-18  9:42 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input, linux-kernel

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*.

I prefer the first one, do you think it is a good solution or do you
have a better one?

If I go with the first one, what is the preferred way of finding out a
gaming device in udev rule?


-- 
Anssi Hannula


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-07-18 17:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-18  9:42 input/eventX permissions, force feedback Anssi Hannula
2006-07-18 12:20 ` Dmitry Torokhov
2006-07-18 14:02   ` Anssi Hannula
2006-07-18 14:14     ` Dmitry Torokhov
2006-07-18 14:31       ` Anssi Hannula
2006-07-18 16:50   ` Andrey Borzenkov
2006-07-18 17:07     ` Anssi Hannula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox