debian/0000755000000000000000000000000011525101251007157 5ustar debian/pmount.install0000644000000000000000000000005611525075534012110 0ustar debian/completion/pmount etc/bash_completion.ddebian/watch0000644000000000000000000000045611525075534010233 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://alioth.debian.org/frs/?group_id=31157 .*pmount-([\d.-]*)\.t.* debian/rules0000755000000000000000000000025011525075534010252 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_configure: dh_auto_configure -- --disable-hal override_dh_auto_test: echo "skipping tests (buggy in upstream tarball)"debian/pmount.postinst0000644000000000000000000000156111525075534012327 0ustar #! /bin/sh set -e case "$1" in configure) [ -e /media ] || mkdir /media # confine pmount/pumount execution to $GROUP members for prog in /usr/bin/pmount /usr/bin/pumount; do if ! dpkg-statoverride --list $prog > /dev/null; then if ! getent group plugdev > /dev/null; then addgroup --quiet --system plugdev || true fi chown root:plugdev $prog chmod 4754 $prog fi done # Clean up pmount stamps in lock directories (bug from < 0.8 packages, # see #302174) if [ -d /var/lock/pmount ]; then find /var/lock/pmount/ -name .created_by_pmount -exec rm -f '{}' \; fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/control0000644000000000000000000000157011525075534010603 0ustar Source: pmount Section: utils Priority: optional Maintainer: Vincent Fourmond Build-Depends: cdbs, debhelper (>= 7.0.50~), intltool, libblkid-dev Standards-Version: 3.9.1 Vcs-Git: git://git.debian.org/git/pmount/pmount-debian.git Vcs-Browser: http://git.debian.org/?p=pmount/pmount-debian.git Package: pmount Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: cryptsetup (>= 1.0) Description: mount removable devices as normal user pmount is a wrapper around the standard mount program which permits normal users to mount removable devices without a matching /etc/fstab entry. This provides a robust basis for automounting frameworks like GNOME's Utopia project and confines the amount of code that runs as root to a minimum. . If a LUKS capable cryptsetup package is installed, pmount is able to transparently mount encrypted volumes. debian/completion/0000755000000000000000000000000011525075534011346 5ustar debian/completion/pmount0000644000000000000000000000566411525075534012626 0ustar #-*- mode: shell-script;-*- # # Bash Completion snippet for the pmount command # Copyright (c) Eduard Bloch, 2009-2011 # # Supports most (all?) of the possible option sets of version 0.9.18 except of # too many device/directory arguments, the charset search can also be improved # # Inputs: # $1 -- name of the command whose arguments are being completed # $2 -- word being completed # $3 -- word preceding the word being completed # $COMP_LINE -- current command line # $COMP_PONT -- cursor position # $COMP_WORDS -- array containing individual words in the current # command line # $COMP_CWORD -- index into ${COMP_WORDS} of the word containing the # current cursor position # Output: # COMPREPLY array variable contains possible completions have pmount && _pmount() { local cur prev options devices fslist options=' -r --read-only -w --read-write -s --sync -A --noatime -e --exec \ -t filesystem --type filesystem -c charset --charset charset -u umask \ --umask umask --dmask dmask --fmask fmask -p file --passphrase file \ -h --help -d --debug -V --version' fslist=' ascii cp1250 cp1251 cp1255 cp437 cp737 cp775 cp850 cp852 cp855 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp932 cp936 cp949 cp950 euc-jp iso8859-1 iso8859-13 iso8859-14 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 iso8859-7 iso8859-9 koi8-r koi8-ru koi8-u utf8' COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} case "$prev" in -@(t|-type)) COMPREPLY=( $( grep "^[[:space:]]$cur" /proc/filesystems ) ) return 0 ;; -@(c|-charset)) COMPREPLY=( $( compgen -W "$fslist" -- $cur ) ) return 0 ;; -@(u|d|-umask|-dmask)) COMPREPLY=( ${cur}0 ${cur}1 ${cur}2 ${cur}3 ${cur}4 ${cur}5 ${cur}6 ${cur}7 ) return 0 ;; -@(p|-passphrase)) _filedir return 0 ;; esac if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$options" -- $cur ) ) else devices="$( command ls $(grep -v '^[[:space:]]*#' /etc/pmount.allow ) $(grep 1 /sys/block/*/removable | sed -e 's,/sys/block/,/dev/,;s,/removable:1,*,') 2>/dev/null | sort -u | sed -e 's,\(^/dev/\)\(.*\),\1\2 \2,' )" COMPREPLY=( $( compgen -W "$devices" -- $cur ) ) fi return 0 } have pumount && _pumount() { local cur prev options devices mdir mdir="$(readlink -f /media)" options=' -l --luks-force -h --help -d --debug --version' COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W "$options" -- $cur ) ) else devices="$( grep $mdir /proc/mounts | sed -e 's,.*/$mdir/,,;s,\ .*,,;s,\(.*\),\1\n/dev/\1,;s,/dev//dev,/dev,' )" COMPREPLY=( $( compgen -W "$devices" -- $cur ) ) fi return 0 } [ "$have" ] && complete -F _pmount $filenames pmount [ "$have" ] && complete -F _pumount $filenames pumount debian/patches/0000755000000000000000000000000011525075534010624 5ustar debian/patches/01-man-plugdev.diff0000644000000000000000000000230211525075534014110 0ustar Subject: Debian-specific modifications of the manual pages. Index: pmount/man/pmount.1 =================================================================== --- pmount.orig/man/pmount.1 2010-05-04 22:22:07.000000000 +0200 +++ pmount/man/pmount.1 2010-05-11 23:49:12.755869419 +0200 @@ -101,6 +101,17 @@ part. +.B Important note for Debian: +The permission to execute pmount is restricted to members of the system +group +.B plugdev\fR. Please add all "desktop" users who shall be able to use +pmount to this group by executing + +.IP +.B adduser \fIuser \fBplugdev +.PP +(as root). + .SH POLICY The mount will succeed if all of the following conditions are met: Index: pmount/man/pumount.1 =================================================================== --- pmount.orig/man/pumount.1 2009-09-10 23:43:50.000000000 +0200 +++ pmount/man/pumount.1 2010-05-11 23:49:12.755869419 +0200 @@ -45,6 +45,16 @@ part. +.B Important note for Debian: +The permission to execute pumount is restricted to members of the system +group +.B plugdev\fR. Please add all "desktop" users who shall be able to use +pmount to this group by executing + +.IP +.B adduser \fIuser \fBplugdev +.PP +(as root). .SH OPTIONS .TP debian/patches/series0000644000000000000000000000002411525075534012035 0ustar 01-man-plugdev.diff debian/copyright0000644000000000000000000000352111525075534011131 0ustar This package was debianized by Martin Pitt on Fri, 13 Aug 2004 22:41:29 +0100. It was downloaded from http://alioth.debian.org/frs/?group_id=31157 Upstream Authors: Martin Pitt Vincent Fourmond Copyright: (C) 2004 Canonical Ltd. (C) 2007, 2008, 2009 Vincent Fourmond This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. The file src/realpath.c comes from mount and is: Copyright (C) 1993 Rick Sladkey This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library Public License for more details. On Debian systems, the complete text of the GNU Library Public License version 2 can be found in `/usr/share/common-licenses/LGPL-2'. debian/changelog0000644000000000000000000004745311525075534011064 0ustar pmount (0.9.23-2) unstable; urgency=low * Updating bash completion, based on a patch by Eduard Bloch * Dropped debian/README.source, long ago pointless * Switched to dh 7 debian/rules. * It seems pmount already conforms to standards 3.9.1 * Drop hal support, as hal is obsolescent (closes: #612794) - that also means that all pmount-hal related problems are now gone (closes: #385238, #580179, #379799) - document the reasons in debian/NEWS * Disable dh_auto_test as it shows some files were forgotten while building the original tarball... -- Vincent Fourmond Fri, 11 Feb 2011 00:56:16 +0100 pmount (0.9.23-1) unstable; urgency=high * New upstream release * Fixes security issue CVE-2010-2192, a security hole by which allowed any user to use a symlink attack to create empty root-owned files and to remove any file with a numeric name. * Urgency high to fix security hole in testing -- Vincent Fourmond Wed, 16 Jun 2010 01:30:06 +0200 pmount (0.9.22-1) unstable; urgency=low * New upstream release, that now correctly luksClose luksOpened devices at pumount time. * Now dropping dpatch, as we have switched to format 3.0 (quilt) -- Vincent Fourmond Tue, 11 May 2010 23:51:25 +0200 pmount (0.9.21-1) unstable; urgency=low * New (small) upstream release: - provides support for ext4; dropping 10-ext4fs (closes: #571739) - now switches to ruid = euid = 0 when calling cryptsetup, which a necessary hack for cryptsetup breakage; dropping 15-cryptsetup-rroot (closes: #551540) * Switching to format 3.0 (quilt) * Now conforms to standards 3.8.4 -- Vincent Fourmond Tue, 04 May 2010 23:07:16 +0200 pmount (0.9.20-3) experimental; urgency=low * Experimental and possibly unsafe attempt at addressing bug #551540. Do not use yet on machines where security is a real concern. -- Vincent Fourmond Sun, 25 Oct 2009 00:24:19 +0200 pmount (0.9.20-2) unstable; urgency=low * Pull commit 804eb6da31801c2f from upstream to (finally) include support for ext4 (closes: #503429) -- Vincent Fourmond Mon, 21 Sep 2009 22:12:07 +0200 pmount (0.9.20-1) unstable; urgency=low * Fix pmount completion for bash in the case of aliased ls. Thanks to Daniel Dehennin for reporting and providing the fix. (closes: #530360) * New upstream release, that fixes quite a few various bugs: - typo in manual page (closes: #520952), thanks to Peter Klotz for reporting/fixing - pumount can now unmount devices that have gone missing, thanks to Michal Suchanek for pointing the problem (closes: #541180). - pumount now severely discourages lazy unmounts, which somewhat closes: #542755 * Now conforms to standards 3.8.3 * Bump dh compatibility level to 7 -- Vincent Fourmond Fri, 11 Sep 2009 00:42:02 +0200 pmount (0.9.19-1) unstable; urgency=low * New upstream version: - whitelisted firewire devices (closes: #495458) - works with newer sysfs (closes: #516199) - follow symlinks in /etc/pmount.allow (closes: #507038) * Fix Vcs-git field, thanks to Daniel Moerner for spotting (closes: #512092) * Adding a forgotten file in debian/copyright + small details there as well. * Add bash completion, courtesy of Eduard Bloch (closes: #517137) * Drop build-dep on libsysfs * Add a ${misc:Depends} dependency -- Vincent Fourmond Mon, 02 Mar 2009 21:49:47 +0100 pmount (0.9.18-2) unstable; urgency=medium * Adding Vcs-* fields * Updated debian/copyright with new location of download files (closes: #504589) * Urgency medium to fix a trivial RC bug in testing. -- Vincent Fourmond Wed, 05 Nov 2008 19:53:20 +0100 pmount (0.9.18-1) unstable; urgency=low * New 'upstream' release: - norwegian translation renamed (closes: #501302) - fixes VFAT and UTF8 problems (closes: #443514) * Adding a debian/README.source file to make it comply to Policy 3.8.0 * Removing 10-finally-fix-fstab-devices, already applied upstream * Documenting patch 01-man-plugdev, to make pmount lintian-clean -- Vincent Fourmond Sat, 18 Oct 2008 22:27:58 +0200 pmount (0.9.17-2) unstable; urgency=medium * Finally fix the problems with symlinks in fstab (closes: #435645), with patch 10-finally-fix-fstab-devices * Urgency medium to fix RC bug in testing -- Vincent Fourmond Mon, 11 Feb 2008 21:50:05 +0100 pmount (0.9.17-1) unstable; urgency=low * New 'upstream' release: - dropping all patches, as they are included 'upstream' - now using libblkid for fs autodetection (Closes: #443575) - automatic detection and use of NTFS-3G (Closes: #455960) - pullling new translations from Rosetta * Bumped Standard Version to 3.7.3, with apparently no changes needed. -- Vincent Fourmond Sun, 30 Dec 2007 00:25:28 +0100 pmount (0.9.16-4) unstable; urgency=low * Revert 04-dont-resolve-fstab-symlinks, as it has very nasty side effects (Closes: #435645) * Now check twice if the device is in fstab: once before prepending /dev, once afterwards, so that #418888 stays closed ! -- Vincent Fourmond Thu, 16 Aug 2007 15:25:17 +0200 pmount (0.9.16-3) unstable; urgency=low * Don't check if pmount's argument is a fstab mountpoint if we do know it is a device (should Closes: #418203) -- Vincent Fourmond Tue, 17 Jul 2007 21:00:11 +0200 pmount (0.9.16-2) unstable; urgency=low * Disable symlink lookup for /etc/fstab entries, as it doesn't make much sense as mount itself doesn't do it. (Closes: #418888) -- Vincent Fourmond Fri, 06 Jul 2007 19:49:23 +0200 pmount (0.9.16-1) unstable; urgency=low * New 'upstream release': - support for fmask/dmask (Closes: #344278, #431065), based on a patch by Suren A. Chilingaryan - better support for mounting by label/uuid (Closes: #328980) - now using nls=charset for NTFS (Closes: #398388) - pmount without arguments now lists the mounted removable devices, based on a patch by Dan Keder (Closes: #426879) - pmount now can mount NTFS fs via ntfsmount or ntfs-3g (Closes: #375211) -- Vincent Fourmond Wed, 04 Jul 2007 00:22:39 +0200 pmount (0.9.15-1) unstable; urgency=low * New 'upstream' release: - Fixes problems with recent kernels (Closes: #411380, #411772) - better behavior with LUKS devices (Closes: #408673) -- Vincent Fourmond Wed, 27 Jun 2007 23:36:09 +0200 pmount (0.9.14-1) unstable; urgency=low * New 'upstream' release: - Fixes the case when /media is a symlink, thanks to Tim Phipps (Closes: 383929) - -p is now a shortcut for --passphrase (Closes: #386230) - document why pmount gives more error messages than mount -t auto (Closes: #388507) * Update FSF's address in debian/copyright -- Vincent Fourmond Sat, 16 Jun 2007 14:54:28 +0200 pmount (0.9.13-4) unstable; urgency=low * Now using dpatch * Fix potential kernel panics with custom ext2/3 filsystems (closes: #427402) * Fixed typo in the help text (closes: #385153) -- Vincent Fourmond Wed, 13 Jun 2007 23:27:36 +0200 pmount (0.9.13-3) unstable; urgency=low * New maintainer (closes: #422005) * Added debian/watch with new alioth project files * Bumped Standards-Version to 3.7.2, no changes -- Vincent Fourmond Tue, 12 Jun 2007 20:33:20 +0200 pmount (0.9.13-2) unstable; urgency=low * Orphan package (see #422005) -- Martin Pitt Sun, 20 May 2007 15:44:07 +0200 pmount (0.9.13-1) unstable; urgency=low * New upstream bugfix release: - pmount-hal: Minor change to build with dbus 0.91. - pmount: If pmount is installed setgid, use pmount's group for gid mount option, otherwise use the user's group, as usual (patch from Wilhelm Meier ). - pmount: Consider devices on pcmcia bus as hotpluggable (and thus pmountable). (https://launchpad.net/bugs/50226) - Fix automake file to ship README.devel. - Fix default path of /etc/pmount.allow (regression from 0.9.12). Closes: #383242 - Update translations from Rosetta. - Remove ALL_LINGUAGS from configure.ac, move them to po/LINGUAS. -- Martin Pitt Tue, 15 Aug 2006 23:57:18 +0200 pmount (0.9.12-1) unstable; urgency=low * New upstream bugfix release: - Fix pmount.allow parsing regular expression (it failed in some ISO locales). (https://launchpad.net/bugs/49655) - pmount-hal: Honour iocharset mount option from hal policy. Closes: #320696, https://launchpad.net/bugs/55422 - pmount-hal: Replace slashes with underscores in label. Closes: #364337, https://launchpad.net/bugs/46536 - pmount: Mount UDF with default umask 000, so that the UDF permissions are not altered. Closes: #348080 - Check for HAL libraries at configure time and conditionally build pmount-hal. Closes: #375230 - Add configure options for external programs and paths, so that policy.h does not need to be altered for installation customizations any more. Closes: #375229 - Update translations from Rosetta. -- Martin Pitt Tue, 8 Aug 2006 12:21:07 +0200 pmount (0.9.11-1) unstable; urgency=low * New upstream bugfix release: - pmount: Refuse to mount devices to a mount point that is already in /etc/fstab. - pmount-hal: Do not try mount non-fstab devices to fstab mountpoints. (https://launchpad.net/bugs/28920) - Update translations from Launchpad Rosetta. -- Martin Pitt Thu, 11 May 2006 22:25:40 +0200 pmount (0.9.10-1) unstable; urgency=low * New upstream bugfix release: - Fix processing of hal's mount options. (patch was already applied in previous version). - pmount-hal: Directly call mount for devices in /etc/fstab. This allows non-plugdev users to mount CD-ROMs and the like with GUIs like Gnome (which call pmount-hal). (https://launchpad.net/bugs/33232) - Document PMOUNT_DEBUG environment variable in pmount-hal manpage. * Remove debian/patches/02-pmount-hal-fix-mountoptions.patch, fixed upstream. -- Martin Pitt Thu, 11 May 2006 14:50:40 +0200 pmount (0.9.9-2) unstable; urgency=medium * Urgency medium since this only fixes two obvious bugs. * Add debian/patches/02-pmount-hal-fix-mountoptions.patch: - Fix processing of hal's mount options. - Patch taken from bzr head. - Closes: #330462 * Remove debian/pmount.dirs so that /media is not owned by pmount any more (base-files creates it nowadays). Create /media in the postinst instead if it does not exist. Closes: #355405 -- Martin Pitt Mon, 13 Mar 2006 19:15:35 +0100 pmount (0.9.9-1) unstable; urgency=low * New upstream release, only fixes two major bugs in pmount-hal: - Fix crash for label-less volumes with hal 0.5.7. - Assign a proper mount point to devices with empty labels (with hal 0.5.7, they became /media/-1). -- Martin Pitt Fri, 3 Mar 2006 17:38:07 +0100 pmount (0.9.8-1) unstable; urgency=low * New upstream release: - Support reiser4 file systems. - Support mounting of MMC cards. - pmount-hal now works correctly with hal 0.5.7. - Many updated translations from Launchpad Rosetta, thanks to all the translators! * debian/rules: Generate a .POT file during build. -- Martin Pitt Tue, 28 Feb 2006 19:48:44 +0100 pmount (0.9.7-2) unstable; urgency=low * Upload to unstable. -- Martin Pitt Mon, 9 Jan 2006 19:37:36 +0100 pmount (0.9.7-1) experimental; urgency=low * New upstream release: - Mount vfat with shortname=mixed option for better WinXP compatibility. - Fix configure check for libsysfs2. - Support --version argument. Ubuntu bug #20336 - Automatically prepend /dev to device argument if it is missing. Closes: #342280 -- Martin Pitt Fri, 16 Dec 2005 13:51:57 +0100 pmount (0.9.6-1) experimental; urgency=low * New upstream bugfix release. - Now respects hal's exec/noexec policy. Closes: #330462 - Clean up default options in pmount manpage. Closes: #330589 * debian/patches/01-man-plugdev.patch.patch: Adopted to new file layout. * debian/rules: Adapt to autotoolized source package. * debian/control: Add intltool build dependency. -- Martin Pitt Tue, 18 Oct 2005 11:35:56 +0200 pmount (0.9.5-1) experimental; urgency=low * New upstream bugfix release: - Fix race condition with several parallel pmount instances which could cause double mounts to the same mount point. Also, pmount-hal now handles this case gracefully and reattempts pmount call with a fresh label. (Ubuntu #14415) - pmount-hal: Use storage.policy.mount_filesystem as a fallback if volume.policy.mount_filesystem does not exist. (Ubuntu #14848) - Fix read-only encrypted devices; thanks to Sören Köpping for the patch. Closes: #326186 - Translation updates from Rosetta. -- Martin Pitt Thu, 15 Sep 2005 17:47:07 +0200 pmount (0.9.4-1) experimental; urgency=low * New upstream bugfix release. -- Martin Pitt Fri, 29 Jul 2005 13:17:04 +0200 pmount (0.9.2-1) experimental; urgency=low * New upstream release: - pmount-hal: Ported to new dbus 0.3x/hal 0.5.x APIs. - Supports mounting LUKS encrypted devices with LUKS capable cryptsetup package (which is not in Debian yet, though). - pmount-hal: Now read volume.policy.mount_filesystem instead of volume.fstype. Closes: #306332 - pmount-hal: Now read umask setting from hal. Closes: #310228, #296914 - Now mount VFAT with shortnames=winnt. Closes: #310618 - Fix typos in manpage. Closes: #310802 - Release an encrypted device again if mounting fails. Closes: #315530 - Proper error message if mapped device for an encrypted volume already exists. Closes: #315527 - iso9660 file system is now marked as capable of 'iocharset'. Closes: #312822 * Droped debian/patches/02-async_by_default.patch: This is upstream now. -- Martin Pitt Sun, 3 Jul 2005 13:25:06 +0200 pmount (0.8-2) unstable; urgency=high * Urgency high since this fixes an RC bug, the fix should reach Sarge. * Added debian/patches/02-async_by_default.patch: - Mount devices 'async' by default instead of 'sync'. This will avoid physical damage of flash chips due to exaggerated updating of inode/FAT structures and greatly speed up the write throughput. On the bad side this makes it much less safe to remove devices without proper umounting. - Replace option "--async" with option "--sync". - Document change in the manpages. - Closes: #309591 * debian/control: Correct package priority to optional, to match the katie overrides. -- Martin Pitt Wed, 18 May 2005 15:41:13 +0200 pmount (0.8-1) unstable; urgency=low * New upstream release: - Unbreak locking. (closes: #302174) - More symmetry between pmount and pumount: pumount now works with label name, pmount with a complete mount path (only in /media). (closes: #299468) - Now supports --umask option. (part of #296914) * debian/pmount.postinst: Remove .created_by_pmount stamps from /var/lock/pmount to clean up broken locking from versions < 0.8. (see #302174) * Compile with Sarge's dbus-1 version, since version 0.23.4 is not yet available on all platforms. (closes: #303291) -- Martin Pitt Mon, 11 Apr 2005 10:24:57 +0200 pmount (0.7.2-1) unstable; urgency=low * New upstream release: - Pulled updated and new translations from Rosetta. -- Martin Pitt Mon, 4 Apr 2005 18:02:35 +0200 pmount (0.7.1-1) unstable; urgency=low * New upstream bugfix release: pmount-hal now reuses an existing /media/