Review Request 124915: [screenlocker] Add emergency mode for greeter crashing

David Edmundson david at davidedmundson.co.uk
Tue Aug 25 10:15:12 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124915/#review84325
-----------------------------------------------------------



ksmserver/screenlocker/lockwindow.cpp (line 84)
<https://git.reviewboard.kde.org/r/124915/#comment58389>

    that's 
    sudo loginctl...
    
    doing it as a normal user will give an error.



ksmserver/screenlocker/lockwindow.cpp (line 85)
<https://git.reviewboard.kde.org/r/124915/#comment58391>

    that's f1 for normal distros....
    
    maybe we can use either ttyname() here?
    
    or qgetenv("XDG_VTNR")?



ksmserver/screenlocker/lockwindow.cpp (line 93)
<https://git.reviewboard.kde.org/r/124915/#comment58390>

    FYI for future
    
    Qt::AlignCenter = 	AlignVCenter | AlignHCenter



ksmserver/screenlocker/lockwindow.cpp (line 123)
<https://git.reviewboard.kde.org/r/124915/#comment58392>

    I don't understand why this exists?
    
    I think it says:
    If the emergency background was visible at the time we try to show the emergency background then we stop blocking suspend


- David Edmundson


On Aug. 25, 2015, 9:16 a.m., Martin Gräßlin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124915/
> -----------------------------------------------------------
> 
> (Updated Aug. 25, 2015, 9:16 a.m.)
> 
> 
> Review request for Plasma and David Edmundson.
> 
> 
> Bugs: 351696
>     https://bugs.kde.org/show_bug.cgi?id=351696
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> If the greeter crashes on startup ksld is caught in a restart loop which
> causes 100 % CPU usage and makes it impossible to unlock the session.
> 
> With this change the greeter is only allowed to crash four times and
> ksld goes into an emergency mode. This mode ensures that our black
> background window gets shown with a message indicating how to unlock
> using loginctl. This is rather technical but better than leaving the
> system in a state which makes it impossible to unlock.
> 
> Directly unlocking in the error case is not an option as that could
> be used to attack the screen locker infrastructure.
> 
> BUG: 351696
> 
> 
> Diffs
> -----
> 
>   ksmserver/screenlocker/autotests/CMakeLists.txt 44bbd97add6f5c9b2f83f9f2f825fa3c904e45c5 
>   ksmserver/screenlocker/ksldapp.h 03ca2580ffc564cde033f3eeb2c81f77179a0bde 
>   ksmserver/screenlocker/ksldapp.cpp d0636b8785101cb9896cea6399952dac0e4cd227 
>   ksmserver/screenlocker/lockwindow.h 265699a9789703ad099eee043a14d4700e90c243 
>   ksmserver/screenlocker/lockwindow.cpp 41af0e23f8442d75b7295debe50d9b29fbda7e7a 
>   ksmserver/screenlocker/tests/CMakeLists.txt 613ec7b2eead38b36e7805804f25ed93b4ef7a68 
> 
> Diff: https://git.reviewboard.kde.org/r/124915/diff/
> 
> 
> Testing
> -------
> 
> 
> File Attachments
> ----------------
> 
> Emergency mode
>   https://git.reviewboard.kde.org/media/uploaded/files/2015/08/25/d90fa1f2-4400-4407-92f6-7d3dff49b3ed__screenlocker-emergency.png
> 
> 
> Thanks,
> 
> Martin Gräßlin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150825/8e1bd9b9/attachment.html>


More information about the Plasma-devel mailing list