| Summary: | pam_mount (mount.crypt) does not remove encrypted device mapper files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Adalbert Prokop <adalbert.prokop> |
| Component: | pam_mount | Assignee: | Till Maas <opensource> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | isaacson, jisakiel, opensource, redhat-bugzilla, steve |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-10 21:00:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 648173 | ||
| Bug Blocks: | |||
|
Description
Adalbert Prokop
2011-07-01 18:58:49 UTC
I also built 2.10 on FC15 (using Till's spec file, thanks) and am seeing inconsistent behavior. Sometimes the device mapper file is removed right away, sometimes after a short amount of time, and sometimes not at all. I've got an ugly workaround:
1. Add this to /etc/security/pam_mount.conf.xml:
<cryptumount>/usr/local/sbin/umount.crypt.dmfix %(MNTPT)</cryptumount>
2. Create /usr/local/sbin/umount.crypt.dmfix:
#!/bin/bash
MNTPT=$1
umount.crypt "$MNTPT"
DM=`mount | awk '$3 == "$MNTPT" { print $1 }'`
if [[ $DM != "" && -e $DM ]]; then
dmsetup remove $DM
fi
libHX-3.12.1-1.fc17,hxtools-20120514-1.fc17,pam_mount-2.13-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/libHX-3.12.1-1.fc17,hxtools-20120514-1.fc17,pam_mount-2.13-1.fc17 Package libHX-3.12.1-1.fc17, hxtools-20120514-1.fc17, pam_mount-2.13-1.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libHX-3.12.1-1.fc17 hxtools-20120514-1.fc17 pam_mount-2.13-1.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9767/libHX-3.12.1-1.fc17,hxtools-20120514-1.fc17,pam_mount-2.13-1.fc17 then log in and leave karma (feedback). libHX-3.12.1-1.fc17, hxtools-20120514-1.fc17, pam_mount-2.13-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |