[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PATCH: put X, XIM, Xfs unix sockets in /var/run/X11



On Fri, Feb 14, 2003 at 03:14:49PM -0800, Zack Weinberg wrote:
> This patch moves the UNIX domain sockets created by the X server, the
> font server, and XIM input methods from various .subdirs of /tmp to
> /var/run/X11, which directory is created at boot time by the existing
> xfree86-common init script.
> 
> This change naturally has backward compatibility implications.  There
> are several cases to consider:
> 
> * New client, old server (for any of the above): logic exists in the
>   Xtrans client code to try an old location if the socket is not found
>   in the new one, so this is not a problem.
> 
> * New X server, old libX11: The boot script creates a symbolic link
>   from /tmp/.X11-unix to /var/run/X11, which should prevent any
>   trouble in this case.  (Users who know they don't need this can
>   disable it.)
> 
> * New font server or input method, old X server: This is unlikely to
>   come up, but the boot script can be edited to create more symlinks
>   if necessary.  README.Debian documents this.
> 
> I did not move the socket directory for libICE, because those sockets
> get created by arbitrary users.  The major point of moving sockets to
> /var/run/X11 is that that directory can be mode 755.  I can think of a
> couple ways to get around that but they're all messy enough not to be
> worth it.
> 
> I also did not move /tmp/.X%d-lock as that would break cohabitation of
> old and new X servers on the same host.

Any objections to my merging this for 4.3.0-0ds4?

-- 
Daniel Stone                                     <dstone@trinity.unimelb.edu.au>
Developer, Trinity College, University of Melbourne

Attachment: pgpCv8zmfMCU8.pgp
Description: PGP signature


Reply to: