Mailinglist Archive: opensuse-bugs (4069 mails)

< Previous Next >
[Bug 671276] pam_mount leaves stuff in /dev/mapper and does not unmount encrypted partitions

https://bugzilla.novell.com/show_bug.cgi?id=671276

https://bugzilla.novell.com/show_bug.cgi?id=671276#c11


--- Comment #11 from Pavel Baranchikov <pavel@xxxxxxxxxxxxx> 2011-08-01
08:58:04 UTC ---
As a workaround, I use script /usr/local/sbin/unmountLuks:

#!/bin/sh

cryptDevice=`grep "$1" /etc/mtab | cut -d "/" -f 4`
umount "$1"
loDevice=`dmsetup ls | grep "$cryptDevice" | cut -d "," -f 2 | cut -d ")" -f 1
| tr -dc [:digit:]`
cryptsetup luksClose $cryptDevice
losetup -d /dev/loop$loDevice


And modified pam_mount.so to use the script:

<cryptumount>/usr/local/sbin/unmountLuks %(MNTPT)</cryptumount>

In this situation, the DB LUKS device is destroyed (by luksClose) on log off.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >