Package: libpam-mount
Version: 0.33-1
Severity: important
Tags: patch

mount.crypt checks whether it got a loopback device to mount and doesn't create
a new one in that case even if "-o loop" was given. This is vital for mounting
encrypted filesystems in files via dm-crypt, wich will get a wrong device mapper
name otherwise and won't get unmounted as result.
For loopback devices have major number 7, the check has to be whether it is
_not_ 7.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libpam-mount depends on:
ii  debconf                    1.5.19        Debian configuration management sy
ii  libc6                      2.7-9         GNU C Library: Shared libraries
ii  libhx10                    1.10.2-2      A library providing queue, tree, I
ii  libpam0g                   0.99.7.1-5    Pluggable Authentication Modules l
ii  libssl0.9.8                0.9.8g-7      SSL shared libraries
ii  libxml-writer-perl         0.604-1       Perl module for writing XML docume
ii  libxml2                    2.6.31.dfsg-2 GNOME XML library
ii  mount                      2.13.1-2      Tools for mounting and manipulatin

libpam-mount recommends no packages.

-- debconf information excluded
--- sbin/mount.crypt    2008-02-25 04:48:59.000000000 +0100
+++ /sbin/mount.crypt   2008-03-09 02:12:28.000000000 +0100
@@ -111,7 +111,7 @@
                (keyfile)
                        keyfile="$VAL";;
                (loop)
-                       if [ "`stat --format=\"%t\" \"$DEVICE\"`" == 7 ]; then
+                       if [ "`stat --format=\"%t\" \"$DEVICE\"`" != 7 ]; then
                                LOOP="true";
                        fi;
                        ;;

Reply via email to