Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 183193

Summary: sys-apps/pam_mount-0.18 does not umount home dir reliably (patch included)
Product: Gentoo Linux Reporter: Joël <world.root>
Component: New packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 185145    
Bug Blocks:    
Attachments: pam_mount-0.18-umount-home-dir.diff

Description Joël 2007-06-25 20:29:22 UTC
pam_mount (and more specifically /sbin/umount.crypt) fails to umount home directories if user processes are still running.

This patch will stop these processes before unmounting the block device. This patch is already in use by SuSE (see pam_mount-0.18-umount-home-dir.diff).

Two more things to fix (IMHO):

1: in /etc/security/pam_mount.conf the proper path for lsof is /usr/sbin/lsof (not /usr/bin/lsof).

2: emerging pam_mount will create /usr/sbin/umount.crypt which is a useless (AFAIK) duplicate of /sbin/umount.crypt.
Comment 1 Joël 2007-06-25 20:30:14 UTC
Created attachment 123072 [details, diff]
pam_mount-0.18-umount-home-dir.diff
Comment 2 Hanno Böck gentoo-dev 2007-07-13 02:02:50 UTC
Next time please one issue per bug.

patch has been rejected upstream. If you rely on this feature, I'd suggest to create a patch that accepts it as an option.

1. I'll fill a bug against lsof
2. done
Comment 3 Hanno Böck gentoo-dev 2007-07-13 12:44:31 UTC
lsof is fixed, for your patch please handle that with upstream.