[patch] Lock screen before suspend to prevent information leak



Hi,

the problem: after a resume from suspend for a short period of time the
content of the desktop appears on the screen before the lock screen is
activated (System Settings -> Brightness & Lock -> Require password ...
is activated).

This is not only visually annoying but may also leak information.

On my system the following trivial patch solves the problem.
(Does not test whether screen should be lock at all, though)

best regards
Roland Lezuo

--- /usr/share/gnome-shell/js/ui/userMenu.js    2013-04-07
20:55:05.603309719 +0200
+++ /tmp/userMenu.js 2013-04-07 20:55:03.879309770 +0200
@@ -992,6 +992,7 @@
             }));
         } else {
             this.menu.close(BoxPointer.PopupAnimation.NONE);
+            Main.screenShield.lock(true);
             this._loginManager.suspend();
         }
     }

Attachment: smime.p7s
Description: S/MIME cryptographic signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]