[Nix-dev] The X unix socket

Steve Roggenkamp roggenkamps at acm.org
Thu Mar 11 04:55:00 CET 2010


This is the same as my Debian installation.

This is actually a UNIX socket the X Windows server uses for 
interprocess communication.  The socket is owned by the X windows server 
which runs as root since it has to control the display device.  The 
permissions allow an arbitrary client to connect with the X Windows server.

I think this is how all Linux have X Windows configured, or at least my 
Debian and Ubuntu installations.

I'm thinking you would have to change the Xorg code to change the 
permissions since this socket gets opened when the Xorg server starts.  
Then I suppose you could create a group that would be allowed to 
communicate with the socket.  I've not done that much coding with UNIX 
sockets, so I'd have to do some research to know whether this would even 
be feasible.

Hope this makes sense.

Steve

Lluís Batlle wrote:
> Hello,
>
> using kdm, I found this:
> $ ls -l /tmp/.X11-unix/X0
> srwxrwxrwx 1 root root 0  7 mar 21:51 /tmp/.X11-unix/X0
>
> I don't like those permissions much. Can anyone suggest a better way
> to handle that in nixos? Why it has permissions 777 and ownership
> rooot?
>
> Regards,
> Lluís.
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100310/7445b386/attachment.html 


More information about the nix-dev mailing list