r14130 - in /desktop/unstable/gnome-screensaver/debian: changelog patches/02_clear_clipboard.patch

joss at users.alioth.debian.org joss at users.alioth.debian.org
Fri Jan 11 13:16:38 UTC 2008


Author: joss
Date: Fri Jan 11 13:16:37 2008
New Revision: 14130

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=14130
Log:
* 02_clear_clipboard.patch: clear the clipboard when locking the 
  screen. Closes: #455484.

Added:
    desktop/unstable/gnome-screensaver/debian/patches/02_clear_clipboard.patch
Modified:
    desktop/unstable/gnome-screensaver/debian/changelog

Modified: desktop/unstable/gnome-screensaver/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-screensaver/debian/changelog?rev=14130&op=diff
==============================================================================
--- desktop/unstable/gnome-screensaver/debian/changelog (original)
+++ desktop/unstable/gnome-screensaver/debian/changelog Fri Jan 11 13:16:37 2008
@@ -1,3 +1,10 @@
+gnome-screensaver (2.20.0-3) UNRELEASED; urgency=medium
+
+  * 02_clear_clipboard.patch: clear the clipboard when locking the 
+    screen. Closes: #455484.
+
+ -- Josselin Mouette <joss at debian.org>  Fri, 11 Jan 2008 14:14:21 +0100
+
 gnome-screensaver (2.20.0-2) unstable; urgency=low
 
   [ Loic Minier ]

Added: desktop/unstable/gnome-screensaver/debian/patches/02_clear_clipboard.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-screensaver/debian/patches/02_clear_clipboard.patch?rev=14130&op=file
==============================================================================
--- desktop/unstable/gnome-screensaver/debian/patches/02_clear_clipboard.patch (added)
+++ desktop/unstable/gnome-screensaver/debian/patches/02_clear_clipboard.patch Fri Jan 11 13:16:37 2008
@@ -1,0 +1,35 @@
+Debian #455484
+GNOME #482159
+Security issue: leak of the clipboard contents when the screen is 
+locked.
+--- trunk/src/gs-lock-plug.c	2007/11/09 21:44:42	1323
++++ trunk/src/gs-lock-plug.c	2007/12/12 21:15:16	1337
+@@ -1563,6 +1563,19 @@
+         return TRUE; /* Do not destroy */
+ }
+ 
++static void
++clear_clipboards (GSLockPlug *plug)
++{
++        GtkClipboard *clipboard;
++
++        clipboard = gtk_widget_get_clipboard (GTK_WIDGET (plug), GDK_SELECTION_PRIMARY);
++        gtk_clipboard_clear (clipboard);
++        gtk_clipboard_set_text (clipboard, "", -1);
++        clipboard = gtk_widget_get_clipboard (GTK_WIDGET (plug), GDK_SELECTION_CLIPBOARD);
++        gtk_clipboard_clear (clipboard);
++        gtk_clipboard_set_text (clipboard, "", -1);
++}
++
+ #define INVISIBLE_CHAR_DEFAULT       '*'
+ #define INVISIBLE_CHAR_BLACK_CIRCLE  0x25cf
+ #define INVISIBLE_CHAR_WHITE_BULLET  0x25e6
+@@ -1578,6 +1591,8 @@
+ 
+         plug->priv = GS_LOCK_PLUG_GET_PRIVATE (plug);
+ 
++        clear_clipboards (plug);
++
+ #ifdef WITH_LIBNOTIFY
+         plug->priv->leave_note_enabled = TRUE;
+ #else




More information about the pkg-gnome-commits mailing list