From: amos_at_nonexisting.hamakor.org.il
Date: Sun 01 Aug 2004 - 16:30:43 IDT
Tzafrir Cohen wrote:
>On Sun, Aug 01, 2004 at 09:08:58AM +0300, amos_at_amos.mailshell.com wrote:
>
>
>>It's been a while since I last touched this but I suspect you'd have
>>to have an invisible window on top of the entire display to catch
>>all events and pass them on. I think this is the way spyware for X11
>>used to be done.
>>
>>
>
>So you basically suggest that I either have to be quite intrusive or
>paôch the window manager, right?
>
>
>
If I remember correctly then when you tell Xlib which events your window
is interested in then
you can specify that these events shouldn't stop at your window but
passed on to windows behind
it on the "stack", that way you can sniff everything that passes through
without hurting any other X
client. For instance, I think this is the reason it's advisable (or used
to be advisable at least back when
host-based access control was used) for security-concience programs to
grab focus when reading
passwords in order to make it harder on sniffer programs to tag-along on
the events this way (I never
dug this path, I just wrote "regular" Xlib programs, so I'm not sure).
(What do you mean by "paôch"? As in "illegal hunting"? I couldn't find
this word in my dictionaries).
--Amos
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il
This archive was generated by hypermail 2.1.7 : Sun 01 Aug 2004 - 16:42:02 IDT