GNOME Bugzilla – Bug 352260
Esd blocks pam_mount / pam_umount
Last modified: 2007-01-22 19:07:49 UTC
Hi, Daniel Kahn Gillmor reported in Debian bug http://bugs.debian.org/335944: """ in a system using pam_mount, it can be important for security that the user's home directory be unmounted (via pam_close_session()) when they log out. However, debian's gnome-session spawns esd at login with a current working directory (cwd) inherited from gnome-session (which appears to default to $HOME when using gdm). Since esd lives on in $HOME a little while after the user exits the session, pam_mount can't unmount the home directory. """ Back then, I myself heard other reports from person having trouble with esd still running after the session. (This problem is probably not Debian specific.) I'll attach the patch that we ship in Debian's gnome-session package since April. Bye,
Created attachment 71306 [details] [review] Kills esd properly (found in Debian package)
I think there were some changes in that area in esound recently, but we still haven't had a release of it. Any chance you could test CVS to see if it has been fixed "upstream"?
The fix to #342729 that has been committed would allow for a simpler patch, that would just shutdown esd instantaneously. It would then exit after playing the logout sound. I also have to add that esd still doesn't chdir() to /, so this part of the patch has to be retained for pam_umount to work.
I committed the code, without the sleep hack. You'll want to push the esd maintainer to make a new release.
Josselin: btw, is there a bug against esd about it not doing a chdir()? I couldn't find one.
Indeed. Here it is: http://bugzilla.gnome.org/show_bug.cgi?id=399500