Support for multiple independent mouse cursors
Samuel Thibault
samuel.thibault at ens-lyon.org
Wed Apr 26 01:12:01 PDT 2006
Peter Hutterer, le Wed 26 Apr 2006 17:36:39 +0930, a écrit :
>
> On 26/04/2006, at 5:18 PM, Samuel Thibault wrote:
>
> >Samuel Thibault, le Wed 26 Apr 2006 09:37:53 +0200, a écrit :
> >>Peter Hutterer, le Wed 26 Apr 2006 10:41:34 +0930, a écrit :
> >>>The only way I found around that is the following:
> >>>modify X lib so that each time a window is created it also sets an
> >>>atom on this window to the PID of the process that opened it.
> >>
> >>For systems that support it (linux at least), you can use
> >>SO_PEERCRED on
> >>unix sockets for getting pid, uid and gid of the peer process.
> >
> >Solaris provides getpeerucred instead.
> >
> >Samuel
> >
>
> That is limited to unix socket though, isn't it?
Yes of course.
> In my setup I can't use unix sockets for X clients, I have to go
> through TCP.
Then you just cannot trust it. Filtering will be handy for people, but
you can't built a security system on this.
Samuel
More information about the xorg
mailing list