Package: mime-support Version: 3.51-1 Severity: wishlist Tags: patch --- Please enter the report below this line. --- Please add support for cautious-launcher from Ubuntu. Some applications like Wine or Java may run executable files which have not the executable bit in their permissions, this patch adds cautious-launcher: a handler for these kind of applications. Future wine uploads might require this new feature to handle the .exe files execution. I have the patch with this work done by me, it is a quilt patch.
--- System information. --- Architecture: i386 Kernel: Linux 2.6.32-5-686 Debian Release: squeeze/sid 500 testing security.debian.org 500 testing deb.opera.com 500 testing cdn.debian.net --- Package information. --- Package's Depends field is empty. Recommends (Version) | Installed ==========================-+-============ file (>= 3.27-3) | 5.04-5 Package's Suggests field is empty.
Some applications like Wine or Java may run executable files which have not the executable bit in their permissions, this patch adds cautious-launcher: a handler for these kind of applications. Future wine uploads might require this new feature to handle the .exe files execution. --- a/debian/cautious-launcher +++ b/debian/cautious-launcher @@ -7,8 +7,9 @@ if [ -n "$exe" ] && [ ! -x "$exe" ] && \ [ "${exe:0:5}" != "/usr/" ] && [ "${exe:0:5}" != "/opt/" ] then - if [ -n "$DISPLAY" ] && [ -x /usr/bin/zenity ]; then - /usr/bin/zenity --error --title "Blocked: $*" --text "The file '$exe' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the <a href=\"https://wiki.ubuntu.com/Security/ExecutableBit\">executable bit</a>." + if [ -n "$DISPLAY" ] && [ -x /usr/bin/xmessage ]; then + xmessage -center "$* The file '$exe' is not marked as executable. If this was downloaded or copied from an +untrusted source, it may be dangerous to run. For more details, read: https://wiki.ubuntu.com/Security/ExecutableBit" else echo "$*: '$exe' is not executable. Aborting." >&2 fi --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +mime-support (3.51-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Backmerge from Ubuntu natty: + - Added "cautious-launcher" for handling execution of files that are + outside /usr and /opt (LP: #506702). + + -- Rafael Belmonte <eaglescr...@gmail.com> Wed, 29 Dec 2010 22:49:27 +0100 + mime-support (3.51-1) unstable; urgency=medium * added numerous new mime.types (closes: 585040, 563067, 578392, 599216) --- a/debian/rules +++ b/debian/rules @@ -36,6 +36,7 @@ install -m 755 update-mime debian/tmp/usr/sbin/ install -m 644 update-mime.man debian/tmp/usr/share/man/man8/update-mime.8 install -m 755 run-mailcap debian/tmp/usr/bin/ + install -m 755 debian/cautious-launcher debian/tmp/usr/bin/ install -m 644 run-mailcap.man debian/tmp/usr/share/man/man1/run-mailcap.1 install -m 644 rfcs/* debian/tmp/usr/share/doc/$(package)/ install -m 644 debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian