[Bug 253277] x11/xtrans: Don't unlink existing UNIX sockets => allows multiple X sessions from sddm
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 5 18:13:27 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253277
Bug ID: 253277
Summary: x11/xtrans: Don't unlink existing UNIX sockets =>
allows multiple X sessions from sddm
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: x11 at FreeBSD.org
Reporter: olivier.freebsd at free.fr
Flags: maintainer-feedback?(x11 at FreeBSD.org)
Assignee: x11 at FreeBSD.org
Created attachment 222189
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=222189&action=edit
Patch against the ports tree
Patch that removes the `unlink` call before binding some UNIX socket.
The problem with the existing approach is that, when Xorg is launched as
`root`, it can always unlink existing sockets, which it does when no display is
explicitly specified and `-displayfd` is used.
Moreover, the X server removes the UNIX socket when exiting (even in most
abnormal cases).
Typically, sddm exactly triggers the problem. So when you try to open another
session through it, the first session's sockets are crushed and it becomes
stale.
I'm proposing the patch here since it is not practically useful on platforms
that launch Xorg with an unprivileged user and because upstream seems inactive.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list