Your message dated Fri, 26 Aug 2005 03:32:05 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#325028: fixed in libpam-mount 0.9.25-3
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Aug 2005 16:40:13 +0000
>From [EMAIL PROTECTED] Thu Aug 25 09:40:13 2005
Return-path: <[EMAIL PROTECTED]>
Received: from neptun.pingos.org [217.160.109.220] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1E8Klx-0006Vq-00; Thu, 25 Aug 2005 09:40:13 -0700
Received: by neptun.pingos.org (Postfix, from userid 10)
        id 1FCE17402847; Thu, 25 Aug 2005 18:39:42 +0200 (CEST)
Received: from andromeda.frankprivat.de (vpn006.frankprivat.de [10.0.2.6])
        (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
        (No client certificate requested)
        by voyager.frankprivat.de (Postfix) with ESMTP id 5C86850B1F04
        for <[EMAIL PROTECTED]>; Thu, 25 Aug 2005 18:39:39 +0200 (CEST)
Received: from [127.0.0.1] (localhost [127.0.0.1])
        by andromeda.frankprivat.de (Postfix) with ESMTP id DD2BC141922E
        for <[EMAIL PROTECTED]>; Thu, 25 Aug 2005 18:40:15 +0200 (CEST)
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 25 Aug 2005 18:40:15 +0200
From: Florian Frank <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050602)
X-Accept-Language: de-DE, de, en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: LUKS Support
Content-Type: multipart/mixed;
 boundary="------------040006060500030805090000"
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        UPPERCASE_25_50 autolearn=no version=2.60-bugs.debian.org_2005_01_02

This is a multi-part message in MIME format.
--------------040006060500030805090000
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Package: libpam-mount
Version: 0.9.25-2
Severity: wishlist
Tags: patch

Support for LUKS in mount.crypt and umount.crypt would be nice.

I wrote a litte dpatch, which I use on my system to use LUKS with
libpam-mount.

Regards
Flo

--------------040006060500030805090000
Content-Type: text/plain;
 name="35_mount_crypt_luks.dpatch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="35_mount_crypt_luks.dpatch"

#! /bin/sh /usr/share/dpatch/dpatch-run
## 35_mount_crypt_luks.dpatch by Florian Frank
##
## All lines beginning with `## DP:' are a description of the patch.

@DPATCH@
diff -urNad ./scripts/mount.crypt_old /tmp/scripts/mount.crypt
--- ./scripts/mount.crypt       2005-08-25 17:24:51.206740896 +0200
+++ /tmp/scripts/mount.crypt    2005-08-25 17:24:21.564247240 +0200
@@ -140,8 +140,21 @@
 # FIXME: blind replacement of / with _ may be a bad idea.
 DMDEVICE=`echo $DMDEVICE | sed 's/\//_/g'`
 
-$CRYPTSETUP -c ${CIPHER:-aes} -h ${HASH:-ripemd160} -s ${KEYSIZE:-256} \
-       create $DMDEVICE $DEVICE
+# check for luks
+$CRYPTSETUP isLuks $DEVICE 2>/dev/null
+
+if [ $? -eq 0 ]; then
+       LUKS=true
+else
+       LUKS=false
+fi
+
+if [ x"$LUKS" = xtrue ]; then
+       $CRYPTSETUP luksOpen $DEVICE $DMDEVICE
+else
+       $CRYPTSETUP -c ${CIPHER:-aes} -h ${HASH:-ripemd160} -s ${KEYSIZE:-256} \
+               create $DMDEVICE $DEVICE
+fi
 
 if [ $? -ne 0 ]; then
        echo "${0##*/}: error creating $DMDEVICE" >&2
@@ -153,7 +166,11 @@
        $FSCK -p /dev/mapper/$DMDEVICE
        if [ $? -gt 1 ]; then
                echo "${0##*/}: filesystem $DMDEVICE has errors" >&2
-               $CRYPTSETUP remove $DMDEVICE
+               if [ x"$LUKS" = xtrue ]; then
+                       $CRYPTSETUP luksClose $DMDEVICE
+               else
+                       $CRYPTSETUP remove $DMDEVICE
+               fi
                [ x"$LOOP" = xtrue ] && $LOSETUP -d $DEVICE
                exit 1
        fi
@@ -163,7 +180,11 @@
 $MOUNT ${MOUNTOPTIONS:+-o $MOUNTOPTIONS} /dev/mapper/$DMDEVICE $MOUNT_POINT
 if [ $? -ne 0 ]; then
        echo "${0##*/}: error mounting $DMDEVICE" >&2
-       $CRYPTSETUP remove $DMDEVICE
+       if [ x"$LUKS" = xtrue ]; then
+               $CRYPTSETUP luksClose $DMDEVICE
+       else
+               $CRYPTSETUP remove $DMDEVICE
+       fi
        [ x"$LOOP" = xtrue ] && $LOSETUP -d $DEVICE
        exit 1
 fi
diff -urNad ./scripts/umount.crypt /tmp/scripts/umount.crypt
--- ./scripts/umount.crypt      2005-08-25 17:24:54.808193392 +0200
+++ /tmp/scripts/umount.crypt   2005-08-25 17:24:30.440897784 +0200
@@ -55,7 +55,21 @@
        exit 1
 fi
 
-$CRYPTSETUP remove $DMDEVICE
+# check for luks
+$CRYPTSETUP isLuks $DEVICE 2>/dev/null
+
+if [ $? -eq 0 ]; then
+       LUKS=true
+else
+       LUKS=false
+fi
+
+if [ x"$LUKS" = xtrue ]; then
+       $CRYPTSETUP luksClose $DMDEVICE
+else
+       $CRYPTSETUP remove $DMDEVICE
+fi
+
 if [ $? -ne 0 ]; then
        echo "${0##*/}: error removing $DMDEVICE" >&2
        exit 1

--------------040006060500030805090000--

---------------------------------------
Received: (at 325028-close) by bugs.debian.org; 26 Aug 2005 10:38:30 +0000
>From [EMAIL PROTECTED] Fri Aug 26 03:38:30 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1E8bVF-0006IP-00; Fri, 26 Aug 2005 03:32:05 -0700
From: Bastian Kleineidam <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#325028: fixed in libpam-mount 0.9.25-3
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Fri, 26 Aug 2005 03:32:05 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Source: libpam-mount
Source-Version: 0.9.25-3

We believe that the bug you reported is fixed in the latest version of
libpam-mount, which is due to be installed in the Debian FTP archive:

libpam-mount_0.9.25-3.diff.gz
  to pool/main/libp/libpam-mount/libpam-mount_0.9.25-3.diff.gz
libpam-mount_0.9.25-3.dsc
  to pool/main/libp/libpam-mount/libpam-mount_0.9.25-3.dsc
libpam-mount_0.9.25-3_i386.deb
  to pool/main/libp/libpam-mount/libpam-mount_0.9.25-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Kleineidam <[EMAIL PROTECTED]> (supplier of updated libpam-mount 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 26 Aug 2005 12:09:20 +0200
Source: libpam-mount
Binary: libpam-mount
Architecture: source i386
Version: 0.9.25-3
Distribution: unstable
Urgency: low
Maintainer: Bastian Kleineidam <[EMAIL PROTECTED]>
Changed-By: Bastian Kleineidam <[EMAIL PROTECTED]>
Description: 
 libpam-mount - a PAM module that can mount volumes for a user session
Closes: 324871 325028
Changes: 
 libpam-mount (0.9.25-3) unstable; urgency=low
 .
   * Added option to mount.crypt to specify filesystem type.
     Use like this:
     $ mount.crypt -o fstype=ext3
     Or in pam_mount.conf add "fstype=ext3" to the crypt mount options.
     Note that you only need this if mount(8) does not detect the file
     system type automatically.
     (Closes: #324871)
   * Add cryptsetup LUKS support to (u)mount.crypt. Thanks Florian Frank
     for the patch (Closes: #325028)
Files: 
 9a29b575a884f3df7743cdbadd5bd30f 678 admin extra libpam-mount_0.9.25-3.dsc
 a03a7883d54eec62bbb813150928c29c 29487 admin extra 
libpam-mount_0.9.25-3.diff.gz
 4c7f91ba595b16fe0615cb84ad35e0a4 101260 admin extra 
libpam-mount_0.9.25-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDDu1veBwlBDLsbz4RAgTPAKCjsMlIvmyhl2+rI/yWLFEbAR+BggCfRbuS
op+ZCnlhhWqZNppEsPhE5t0=
=OWCJ
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to