FreeBSD Bugzilla – Attachment 222189 Details for
Bug 253277
x11/xtrans: Don't unlink existing UNIX sockets => allows multiple X sessions from sddm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against the ports tree
x11_xtrans.patch (text/plain), 1.60 KB, created by
Olivier Certner
on 2021-02-05 18:13:27 UTC
(
hide
)
Description:
Patch against the ports tree
Filename:
MIME Type:
Creator:
Olivier Certner
Created:
2021-02-05 18:13:27 UTC
Size:
1.60 KB
patch
obsolete
>Index: x11/xtrans/files/patch-no_unix_socket_unlink_before_bind-Xtranssock.c >=================================================================== >--- x11/xtrans/files/patch-no_unix_socket_unlink_before_bind-Xtranssock.c (nonexistent) >+++ x11/xtrans/files/patch-no_unix_socket_unlink_before_bind-Xtranssock.c (copie de travail) >@@ -0,0 +1,20 @@ >+Don't unlink an existing socket before binding. >+ >+Sockets are normally cleaned up by the X server. Running the server as root >+makes the unlink operation always succeed, as well as the subsequent socket >+binding (creation in the file system). But success in binding a new socket is >+used to detect in-use displays when using -displayfd. So, when running as root, >+:0 is never detected as been used and its socket is systematically crushed, >+rendering the existing :0 session stale. >+ >+--- Xtranssock.c 2019-03-16 22:30:31.000000000 +0100 >++++ Xtranssock.c 2021-02-04 16:30:09.853117000 +0100 >+@@ -1004,8 +1004,6 @@ >+ sockname.sun_path[0] = '\0'; >+ namelen = offsetof(struct sockaddr_un, sun_path) + 1 + strlen(&sockname.sun_path[1]); >+ } >+- else >+- unlink (sockname.sun_path); >+ >+ if ((status = TRANS(SocketCreateListener) (ciptr, >+ (struct sockaddr *) &sockname, namelen, flags)) < 0) > >Property changes on: x11/xtrans/files/patch-no_unix_socket_unlink_before_bind-Xtranssock.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253277
: 222189