[gnome-shell/gnome-3-8] screenShield: Clear clipboard on lock
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] screenShield: Clear clipboard on lock
- Date: Wed, 5 Jun 2013 14:24:18 +0000 (UTC)
commit 1d95841da0ef57906591a1dcede1e4ab7cceb5f5
Author: Florian Müllner <fmuellner gnome org>
Date: Thu May 16 17:51:31 2013 +0200
screenShield: Clear clipboard on lock
Currently the clipboard's contents may leak to unauthorized parties by
pasting into the unlock dialog's password entry and unmasking the entry.
Prevent this from happening by clearing the clipboard on lock.
https://bugzilla.gnome.org/show_bug.cgi?id=698922
js/ui/screenShield.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 5b3ed95..fe9cd31 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -1200,6 +1200,12 @@ const ScreenShield = new Lang.Class({
return;
}
+ // Clear the clipboard - otherwise, its contents may be leaked
+ // to unauthorized parties by pasting into the unlock dialog's
+ // password entry and unmasking the entry
+ St.Clipboard.get_default().set_text(St.ClipboardType.CLIPBOARD, '');
+ St.Clipboard.get_default().set_text(St.ClipboardType.PRIMARY, '');
+
this._isLocked = true;
this.activate(animate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]