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
This commit is contained in:
parent
6c527c1bb4
commit
41ae93dba0
@ -1215,6 +1215,12 @@ const ScreenShield = new Lang.Class({
|
|||||||
return;
|
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._isLocked = true;
|
||||||
this.activate(animate);
|
this.activate(animate);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user