Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183193 - sys-apps/pam_mount-0.18 does not umount home dir reliably (patch included)
Summary: sys-apps/pam_mount-0.18 does not umount home dir reliably (patch included)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on: 185145
Blocks:
  Show dependency tree
 
Reported: 2007-06-25 20:29 UTC by Joël
Modified: 2007-07-13 12:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
pam_mount-0.18-umount-home-dir.diff (pam_mount-0.18-umount-home-dir.diff,508 bytes, patch)
2007-06-25 20:30 UTC, Joël
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.