diff options
Diffstat (limited to 'x11/gdm/files/patch-CVE-2011-1709')
-rw-r--r-- | x11/gdm/files/patch-CVE-2011-1709 | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/x11/gdm/files/patch-CVE-2011-1709 b/x11/gdm/files/patch-CVE-2011-1709 new file mode 100644 index 000000000..0c05eda44 --- /dev/null +++ b/x11/gdm/files/patch-CVE-2011-1709 @@ -0,0 +1,76 @@ +http://git.gnome.org/browse/gdm/commit/?h=gnome-2-32&id=c721deb4c3dbf170946af8ee3634327c06ea4536 + +--- data/Makefile.in.orig 2010-08-11 19:40:15.000000000 +0200 ++++ data/Makefile.in 2011-05-31 22:05:52.000000000 +0200 +@@ -399,6 +399,8 @@ EXTRA_DIST = \ + PostLogin \ + gconf.path \ + session-setup.entries \ ++ mime-dummy-handler.desktop \ ++ mimeapps.list \ + $(NULL) + + CLEANFILES = \ +@@ -903,6 +905,8 @@ uninstall-hook: + $(DESTDIR)$(PAM_PREFIX)/pam.d/gdm \ + $(DESTDIR)$(PAM_PREFIX)/pam.d/gdm-autologin \ + $(DESTDIR)$(workingdir)/.gconf.path \ ++ $(DESTDIR)$(workingdir)/.local/share/applications/mime-dummy-handler.desktop \ ++ $(DESTDIR)$(workingdir)/.local/share/applications/mimeapps.list \ + -rf \ + $(DESTDIR)$(workingdir)/.gconf.mandatory \ + $(DESTDIR)$(screenshotdir) \ +@@ -1000,6 +1004,12 @@ install-data-hook: gdm.conf-custom Xsess + chown root:gdm $(DESTDIR)$(workingdir) || : ; \ + fi + ++ if test '!' -d $(DESTDIR)$(workingdir)/.local/share/applications; then \ ++ $(mkinstalldirs) $(DESTDIR)$(workingdir)/.local/share/applications; \ ++ chmod 0755 $(DESTDIR)$(workingdir)/.local/share/applications; \ ++ chown gdm:gdm $(DESTDIR)$(workingdir)/.local/share/applications || : ; \ ++ fi ++ + if test '!' -d $(DESTDIR)$(cachedir); then \ + $(mkinstalldirs) $(DESTDIR)$(cachedir); \ + chmod 1755 $(DESTDIR)$(cachedir); \ +@@ -1013,6 +1023,9 @@ install-data-hook: gdm.conf-custom Xsess + chmod 1750 $(DESTDIR)$(workingdir)/.gconf.mandatory + chmod 1640 $(DESTDIR)$(workingdir)/.gconf.mandatory/*.xml + ++ $(INSTALL_DATA) $(srcdir)/mime-dummy-handler.desktop $(DESTDIR)$(workingdir)/.local/share/applications/mime-dummy-handler.desktop ++ $(INSTALL_DATA) $(srcdir)/mimeapps.list $(DESTDIR)$(workingdir)/.local/share/applications/mimeapps.list ++ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: +--- data/mime-dummy-handler.desktop.orig 2011-05-31 22:08:08.000000000 +0200 ++++ data/mime-dummy-handler.desktop 2011-05-31 22:08:03.000000000 +0200 +@@ -0,0 +1,6 @@ ++[Desktop Entry] ++Type=Application ++Name=Dummy URI Handler ++Exec=/bin/true %U ++Terminal=false ++StartupNotify=false +--- data/mimeapps.list.orig 2011-05-31 22:08:21.000000000 +0200 ++++ data/mimeapps.list 2011-05-31 22:08:17.000000000 +0200 +@@ -0,0 +1,19 @@ ++[Default Applications] ++x-scheme-handler/file=mime-dummy-handler.desktop ++x-scheme-handler/ftp=mime-dummy-handler.desktop ++x-scheme-handler/ghelp=mime-dummy-handler.desktop ++x-scheme-handler/help=mime-dummy-handler.desktop ++x-scheme-handler/http=mime-dummy-handler.desktop ++x-scheme-handler/https=mime-dummy-handler.desktop ++x-scheme-handler/info=mime-dummy-handler.desktop ++x-scheme-handler/irc=mime-dummy-handler.desktop ++x-scheme-handler/itms=mime-dummy-handler.desktop ++x-scheme-handler/mailto=mime-dummy-handler.desktop ++x-scheme-handler/man=mime-dummy-handler.desktop ++x-scheme-handler/mms=mime-dummy-handler.desktop ++x-scheme-handler/rtp=mime-dummy-handler.desktop ++x-scheme-handler/rtsp=mime-dummy-handler.desktop ++x-scheme-handler/sip=mime-dummy-handler.desktop ++x-scheme-handler/trash=mime-dummy-handler.desktop ++x-scheme-handler/webcal=mime-dummy-handler.desktop ++x-scheme-handler/xmpp=mime-dummy-handler.desktop |