Package: libpam-mount
Version: 0.44-1+lenny3
Severity: important
Tags: patch
When debug is enabled, pam_mount.so run lsof command at the end of the session
to show open files that prevent umounting volumes.
Due to a wrong call to HXbtree_get in run_lsof() function, it exit without
running lsof command and no error message is send to syslog. Attached patch
solve this problem.
-- System Information:
Debian Release: 5.0.1
APT prefers lenny
APT policy: (500, 'lenny'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libpam-mount depends on:
ii debconf 1.5.24 Debian configuration management sy
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libhx13 1.18-1 A library providing queue, tree, I
ii libpam0g 1.0.1-5+lenny1 Pluggable Authentication Modules l
ii libssl0.9.8 0.9.8g-15+lenny1 SSL shared libraries
ii libxml-writer-perl 0.604-1 Perl module for writing XML docume
ii libxml2 2.6.32.dfsg-5 GNOME XML library
ii mount 2.13.1.1-1 Tools for mounting and manipulatin
libpam-mount recommends no packages.
Versions of packages libpam-mount suggests:
pn cryptsetup <none> (no description available)
pn davfs2 <none> (no description available)
pn fuse-utils <none> (no description available)
ii lsof 4.78.dfsg.1-4 List open files
pn ncpfs <none> (no description available)
ii openssl 0.9.8g-15+lenny1 Secure Socket Layer (SSL) binary a
ii psmisc 22.6-1 Utilities that use the proc filesy
pn smbfs <none> (no description available)
pn truecrypt-utils <none> (no description available)
-- debconf information:
* libpam-mount/convert-xml-config: false
--- /tmp/deb-src/libpam-mount-0.44/src/mount.c 2008-08-17 02:00:05.000000000 +0200
+++ libpam-mount-0.44/src/mount.c 2009-06-12 13:15:33.000000000 +0200
@@ -112,9 +112,11 @@
struct stat sb;
unsigned int i;
pid_t pid;
+ char* str;
- if (stat(HXbtree_get(vinfo, "MNTPT"), &sb) < 0 && errno == ENOENT)
- return;
+ HXformat_aprintf(vinfo, &str, "%(MNTPT)");
+ if (stat(HXbtree_get(vinfo, str), &sb) < 0 && errno == ENOENT)
+ return;
if (config->command[CMD_LSOF][0] == NULL)
l0g("lsof not defined in pam_mount.conf.xml\n");