Re: Track keyboard and mouse usage
- From: "dfaber" <deusfaber@xxxxxxxxx>
- Date: 17 Jul 2006 13:44:57 -0700
So, how would I access /dev/input/ devices?
Can I just 'cat' them or read in those files?
Diez B. Roggisch wrote:
skip@xxxxxxxxx schrieb:
Diez> You could use the /dev/input/event* devices.
On the only Linux system I have available (Mojam's CentOS-based web server),
/dev/input/* are readable only by root. That doesn't seem like it would be
very useful to tools like watch unless they were to run suid to root
(creating other problems).
You don't need to give it root access. A simple rule for the udev that
looks like this:
KERNEL=="event[0-9]*", NAME="input/%k", MODE="0444"
will make the devices world readable. While I haven't thought about any
security implications that might have (and am not especially
knowledgeable in such things to be honest), I'm convinced it is way less
likely to introduce any exploitable holes than suid root would.
Diez
.
- Follow-Ups:
- Re: Track keyboard and mouse usage
- From: Diez B. Roggisch
- Re: Track keyboard and mouse usage
- References:
- Track keyboard and mouse usage
- From: dfaber
- Re: Track keyboard and mouse usage
- From: Diez B. Roggisch
- Re: Track keyboard and mouse usage
- From: skip
- Re: Track keyboard and mouse usage
- From: Diez B. Roggisch
- Track keyboard and mouse usage
- Prev by Date: Re: Coding style
- Next by Date: XMLRPC Solution Code
- Previous by thread: Re: Track keyboard and mouse usage
- Next by thread: Re: Track keyboard and mouse usage
- Index(es):
Relevant Pages
|