[Bug 253277] x11/xtrans: Don't unlink existing UNIX sockets => allows multiple X sessions from sddm
| Newsgroups | gmane.os.freebsd.devel.x11 |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
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: [email protected]
Reporter: [email protected]
Flags: maintainer-feedback?([email protected])
Assignee: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"