Package: libpam-mount
Version: 0.21-1
Severity: normal
Hi, Bastian,
i have a crash in cryptsetup when logging in to the user account
with the following ~/.pam-mount.conf.xml.
(no changes since my last bug reports:
a encrypted luks filesystem image mounted inside the home directory)
<?xml version="1.0" encoding="UTF-8"?>
<pam_mount>
<volume
user="ingo"
path="/home/ingo:crypt.img"
mountpoint="/home/ingo/crypt"
fstype="crypt"
options="fsck,nodev,loop,nosuid"
fskeycipher=""
fskeypath=""
invert="0"
server="0" />
</pam_mount>
Here the tail of the console log for version 21-1
with '-x' option set in /sbin/mount.crypt:
pam_mount(mount.c:98) + MOUNTOPTIONS=rw,nosuid,nodev
pam_mount(mount.c:98) + for opt in '$OPTIONS'
pam_mount(mount.c:98) + KEY=loop
pam_mount(mount.c:98) + VAL=/dev/loop0
pam_mount(mount.c:98) + case "$KEY" in
pam_mount(mount.c:98) + losetup /dev/loop0
pam_mount(mount.c:98) + for opt in '$OPTIONS'
pam_mount(mount.c:98) + KEY=fsck
pam_mount(mount.c:98) + VAL=fsck
pam_mount(mount.c:98) + case "$KEY" in
pam_mount(mount.c:98) + DOFSCK=true
pam_mount(mount.c:98) + IFS=' '
pam_mount(mount.c:98) + '[' false == true ']'
pam_mount(mount.c:98) + case "$DEVICE" in
pam_mount(mount.c:98) ++ losetup /dev/loop0
pam_mount(mount.c:98) ++ sed 's/.*(\(.\+\)).*/\1/'
pam_mount(mount.c:98) + DMDEVICE=/home/ingo:crypt.img
pam_mount(mount.c:98) + : /home/ingo:crypt.img
pam_mount(mount.c:98) ++ sed 's/\//_/g'
pam_mount(mount.c:98) ++ echo /home/ingo:crypt.img
pam_mount(mount.c:98) + DMDEVICE=_home_ingo:crypt.img
pam_mount(mount.c:98) + cryptsetup isLuks /dev/loop0
pam_mount(mount.c:98) + LUKS=true
pam_mount(mount.c:98) + cryptsetup luksOpen _home_ingo:crypt.img
/dev/loop0
pam_mount(mount.c:98) /sbin/mount.crypt: line 153: 2615 Segmentation
fault cryptsetup luksOpen $luks_ro "$DMDEVICE" "$DEVICE"
pam_mount(mount.c:98) + '[' 139 -ne 0 ']'
pam_mount(mount.c:98) + echo 'mount.crypt: error creating
_home_ingo:crypt.img'
pam_mount(mount.c:98) mount.crypt: error creating _home_ingo:crypt.img
pam_mount(mount.c:98) + '[' false == true ']'
pam_mount(mount.c:98) + exit 1
pam_mount(mount.c:982) waiting for mount
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/hda3 ext3 225557 166966 46944 79% /
tmpfs tmpfs 388176 0 388176 0% /lib/init/rw
proc proc 0 0 0 - /proc
sysfs sysfs 0 0 0 - /sys
udev tmpfs 10240 100 10140 1% /dev
tmpfs tmpfs 388176 0 388176 0% /dev/shm
devpts devpts 0 0 0 - /dev/pts
/dev/hda11 ext3 8696924 3689244 4565896 45% /usr
/dev/hda9 ext3 4134900 2914712 1010140 75% /home
/dev/hda8 ext3 4134900 2487132 1437720 64% /var
/dev/hda12 ext3 9273984 6537764 2265116 75% /mnt/archive
/dev/hda10 ext3 8514720 7912056 170116 98% /mnt/media
pam_mount(pam_mount.c:529) mount of /home/ingo:crypt.img failed
pam_mount(pam_mount.c:132) clean system authtok (0)
pam_mount(misc.c:271) command: pmvarrun [-u] [ingo] [-o] [1]
pam_mount(misc.c:346) set_myuid(pre): (uid=0, euid=0, gid=1000,
egid=1000)
pam_mount(misc.c:374) set_myuid(pre): (uid=0, euid=0, gid=1000,
egid=1000)
pam_mount(pam_mount.c:360) error executing pmvarrun
pam_mount(pam_mount.c:538) done opening session (ret=3)
And now the diff to the working version 20-1
(i removed the line numbers for better diff):
6c6
< pam_mount(mount.c:) + losetup /dev/loop0
---
> pam_mount(mount.c:) + '[' /dev/loop '!=' /dev/loop ']'
19d18
< pam_mount(mount.c:) ++ sed 's/\//_/g'
20a20
> pam_mount(mount.c:) ++ sed 's/\//_/g'
24,31c24,32
< pam_mount(mount.c:) + cryptsetup luksOpen _home_ingo:crypt.img
/dev/loop0
< pam_mount(mount.c:) /sbin/mount.crypt: line 153: 2615 Segmentation
fault cryptsetup luksOpen $luks_ro "$DMDEVICE" "$DEVICE"
< pam_mount(mount.c:) + '[' 139 -ne 0 ']'
< pam_mount(mount.c:) + echo 'mount.crypt: error creating
_home_ingo:crypt.img'
< pam_mount(mount.c:) mount.crypt: error creating _home_ingo:crypt.img
< pam_mount(mount.c:) + '[' false == true ']'
< pam_mount(mount.c:) + exit 1
< pam_mount(mount.c:) waiting for mount
---
> pam_mount(mount.c:) + cryptsetup luksOpen /dev/loop0
_home_ingo:crypt.img
> pam_mount(mount.c:) Command successful.
> pam_mount(mount.c:) + '[' 0 -ne 0 ']'
> pam_mount(mount.c:) + '[' true == true ']'
> pam_mount(mount.c:) + fsck -p /dev/mapper/_home_ingo:crypt.img
> pam_mount(mount.c:) + '[' 0 -gt 1 ']'
> pam_mount(mount.c:) + mount -o rw,nosuid,nodev
/dev/mapper/_home_ingo:crypt.img /home/ingo/crypt
> pam_mount(mount.c:) + '[' 0 -ne 0 ']'
> pam_mount(mount.c:950) waiting for mount
After the segfault the two loop devices remain
(or is it only one, displayed twice):
noo:~ # losetup -a
/dev/loop0: [0309]:22 (/home/ingo:crypt.img)
/dev/loop/0: [0309]:22 (/home/ingo:crypt.img)
noo:~ # losetup -d /dev/loop0
noo:~ # losetup -a
noo:~ #
hope all this stuff helps.
regards, ingo
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22.5
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages libpam-mount depends on:
ii libc6 2.6.1-5 GNU C Library: Shared libraries
ii libglib2.0-0 2.14.1-2 The GLib library of C routines
ii libhx10 1.10.1-1 A library providing queue, tree, I
ii libssl0.9.8 0.9.8e-8 SSL shared libraries
ii libxml2 2.6.30.dfsg-2 GNOME XML library
ii mount 2.13-5 Tools for mounting and manipulatin
libpam-mount recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]