Bug 5530

Summary: xtrans should support the abstract socket namespace in linux
Product: xorg Reporter: Adam Jackson <ajax>
Component: * OtherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Adam Jackson 2006-01-07 05:42:56 UTC
In linux, if the first byte of sun_path in struct sockaddr_un is \0, the socket
exists in an abstract namespace not connected to the filesystem, and the name of
the socket is given by the other UNIX_PATH_MAX-1 bytes in sun_path.

xtrans has issues with creating sockets in /tmp, including some well known
security problems (bug #951 for example).  Some projects are working towards a
per-user /tmp, but the server sockets have to be globally accessible.  Creating
them in the abstract namespace would keep them both globally visible and out of
the filesystem.

Abstract sockets otherwise behave like normal PF_UNIX sockets so no security
problems are introduced by this.  For compatibility xtrans should try both
filesystem and abstract sockets.
Comment 1 Adam Jackson 2006-03-21 07:07:41 UTC

*** This bug has been marked as a duplicate of 6297 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.