News for hackers. Stuff that matters.
Re:Kids find a security flaw in Linux Mint by mashing keys by toast0 on Wednesday January 20, 2021 @04:59AM (#25844545)
The underlying design issues are:

a) there's no Xserver concept of a lock screen which would be hard to fix, I suspect. How would you signal X to lock/unlock; what would it do if the lock client wasn't connected, etc.

b) there's no atomic way to transfer mouse/keyboard grab to another window, which means you can't have a reliable, crash reduced screen locker that supervises a beautiful password checking program; it has to be the same program. This could probably be fixed with an X extension; yes, an extension is a lot of work, and yes, you'd have to deal with fragmentation, but you could keep the untoolkited password dialog in case the extension isn't present, nobody would see it unless they did something odd, so it's fine.

Another issue is that I think I've seen some linux systems don't launch the screen locker until resume, instead of locking before suspend; that's not ideal, because the screen locker will take time to launch and lock the screen (more so if it's got a fancy initialization routine and is a large binary/many libraries to load).

An option could be running a dedicated screen lock Xserver on a different VT, and (securely) switching to that one somehow. But that would probably involve changes to multiple layers at the same time, which is hard to pull off in Linux. People would complain about the bloat of running a second Xserver, regardless of the actual bloat or imcreased utility.

Re:Kids find a security flaw in Linux Mint by mashing keys by m45t3r on Wednesday January 20, 2021 @08:30AM (#25846167)
> Another issue is that I think I've seen some linux systems don't launch the screen locker until resume, instead of locking before suspend; that's not ideal, because the screen locker will take time to launch and lock the screen (more so if it's got a fancy initialization routine and is a large binary/many libraries to load).

This particular issue is fixed in logind, when you ask it to lock the season/suspend/hibernate it first calls the lock screen, wait it to signal it finishes and them it proceed to suspend/hibernate.

Not saying you need systemd to fix this issue, but it is one of the things that systemd allows you to do correctly without reinventing the wheel.

Re:Kids find a security flaw in Linux Mint by mashing keys by josefx on Wednesday January 20, 2021 @05:08AM (#25844596)
> and yes, you'd have to deal with fragmentation,

Why not just require that it is there? Is there even a valid reason for someone to keep the extension out unless it is to give another "this is the reason X sucks" speech?

Re:Kids find a security flaw in Linux Mint by mashing keys by toast0 on Wednesday January 20, 2021 @05:14AM (#25844627)
Because, IIRC, xscreensaver is launched on demand (idle timer, power management), and that's a terrible time to detect the extension and tell a user that they won't be able to resume their session, because their Xserver is too old.

Also, because of piecemeal releases, and remote X. You might update Xscreensaver, but not your X server or desktop environment. You might have a dedicated X terminal which can't easily have its server component updated, but you run remote sessions that have an updated Xscreensaver. (Btw, if you do this, you're pretty dedicated in 2021)

Re:Kids find a security flaw in Linux Mint by mashing keys by andi999 on Wednesday January 20, 2021 @07:21AM (#25845563)
What is todays alternative to remote sessions?
Re:Kids find a security flaw in Linux Mint by mashing keys by toast0 on Wednesday January 20, 2021 @01:56PM (#25850387)
Most of what I've seen has migrated towards a virtual display on the session server, streamed via vnc/rdp/? to a thin client.
Re:Kids find a security flaw in Linux Mint by mashing keys by marcthe12 on Wednesday January 20, 2021 @08:34AM (#25846213)
I like the dedicated VT, as DE users usually have a DM to login and for wayland that prob must a separate VT any way. The question is how to securely do this.