Re:Wayland: “Move fast and break things” as a moral imperative
by jraph on Sunday May 23, 2021 @05:48AM
(#27253723)
This is not xscreensaver though. This is important because jwz, xscreensaver's author, has written about this at length [1,2]. He was very careful to make the core of xscreensaver as small as possible to avoid crashes.
[1] https://www.jwz.org/xscreensaver/toolkits.html
[2] https://www.jwz.org/blog/2015/04/i-told-you-so-again/
(open these links in a new tab or by copy-pasting the URL)
Re:Wayland: “Move fast and break things” as a moral imperative
by justinjlynn on Sunday May 23, 2021 @06:00AM
(#27253773)
True, and certainly a fair distinction. Perhaps I should say that a vulnerability of this nature - involving an xscreensaver fork - has occurred in practice.
Re:Wayland: “Move fast and break things” as a moral imperative
by jraph on Sunday May 23, 2021 @06:06AM
(#27253805)
Yes, your point still stands, this class of bugs is "fatally" present on X11, there is seemingly nothing that can be done about it.
Re:Wayland: “Move fast and break things” as a moral imperative
by makomk on Sunday May 23, 2021 @06:30AM
(#27253951)
It can actually be avoided on X11 if you're willing to make the screensaver an integral part of the desktop environment. The way KDE has done it since the KDE 4 era at least is by doing the actual screen locking in ksmserver and having the unlock screen and password entry dialog as a seperate process. This has two effects: crashing the password entry dialog or the screensaver will not unlock the desktop, and if you do somehow manage to crash ksmserver the session will immediately terminate, because ksmserver exiting for any reason is how X decides that the session is over. This is a bit like Wayland's solution, except with much less potentially buggy and crashy code in the process responsible for locking the desktop.
Re:Wayland: “Move fast and break things” as a moral imperative
by dEnigma on Sunday May 23, 2021 @06:15AM
(#27253868)
I had forgotten about that redirection (and didn't read your note), so I thought you were making a crude joke with that link at first.
Re:Wayland: “Move fast and break things” as a moral imperative
by jraph on Sunday May 23, 2021 @06:23AM
(#27253918)
The Referer header can't die soon enough. Or HN could implement rel=noreferrer (at least on links to this website) or the relevant CSPs. Or jwz stop doing this redirection but I don't see this happening.
This has happened before: https://github.com/linuxmint/cinnamon-screensaver/issues/354