Your message dated Sat, 01 Apr 2006 07:17:09 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#335944: fixed in gnome-session 2.14.0-1
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: gnome-session
Severity: normal
Tags: patch
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.
The attached revision of debian/patches/07_kill_esd.diff tells esd to
start up with a cwd of "/" instead of inheriting cwd from
gnome-session. The patch also tells the (hackish-looking)
stop_esd_delayed() function to spawn its "sleep 5 ; kill %i" shell
command with a cwd of "/". This is enough to let pam_mount politely
unmount any mounted homedir.
i'd be happy to hear any thoughts about other ways to do this. When a
session is completed, i think it is important that the default install
leaves *nothing* open in or below a user's home directory. (of
course, if the user nohups something in the background and leaves it
running as they log out, that's their own problem).
Thanks for maintaining GNOME for debian! it's a sharp-looking suite.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (700, 'testing'), (700, 'stable'), (600, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
diff -PruN gnome-session-2.8.1.orig/gnome-session/gsm-sound.c gnome-session-2.8.1/gnome-session/gsm-sound.c
--- gnome-session-2.8.1.orig/gnome-session/gsm-sound.c 2002-10-08 05:01:09.000000000 +0200
+++ gnome-session-2.8.1/gnome-session/gsm-sound.c 2004-11-23 17:51:09.000000000 +0100
@@ -11,6 +11,8 @@
#define ENABLE_ESD_KEY "/desktop/gnome/sound/enable_esd"
#define ENABLE_SOUNDS_KEY "/desktop/gnome/sound/event_sounds"
+static GPid esd_pid = 0;
+
static gboolean
esd_enabled (void)
{
@@ -60,11 +62,13 @@
{
GError *err = NULL;
time_t starttime;
+ gchar *argv[] = {ESD_SERVER, "-nobeeps", NULL};
- if (!g_spawn_command_line_async (ESD_SERVER" -nobeeps", &err))
+ if (!g_spawn_async ("/", argv, NULL, 0, NULL, NULL, &esd_pid, &err))
{
g_warning ("Could not start esd: %s\n", err->message);
g_error_free (err);
+ esd_pid = 0;
return;
}
@@ -81,6 +85,19 @@
}
}
+static void
+stop_esd_delayed (void)
+{
+ if (esd_pid)
+ {
+ gchar *command = g_strdup_printf ("sleep 5 ; kill %i", esd_pid);
+ gchar *argv[] = {"/bin/sh", "-c", command, NULL};
+ g_spawn_async ("/", argv, NULL, 0, NULL, NULL, NULL, NULL);
+ esd_pid = 0;
+ g_free (command);
+ }
+}
+
static gboolean
load_login_sample_from (const char *file)
{
@@ -193,5 +210,6 @@
#ifdef HAVE_ESD
if (sound_events_enabled ())
play_trigger ("logout");
+ stop_esd_delayed ();
#endif
}
--- End Message ---
--- Begin Message ---
Source: gnome-session
Source-Version: 2.14.0-1
We believe that the bug you reported is fixed in the latest version of
gnome-session, which is due to be installed in the Debian FTP archive:
gnome-session_2.14.0-1.diff.gz
to pool/main/g/gnome-session/gnome-session_2.14.0-1.diff.gz
gnome-session_2.14.0-1.dsc
to pool/main/g/gnome-session/gnome-session_2.14.0-1.dsc
gnome-session_2.14.0-1_i386.deb
to pool/main/g/gnome-session/gnome-session_2.14.0-1_i386.deb
gnome-session_2.14.0.orig.tar.gz
to pool/main/g/gnome-session/gnome-session_2.14.0.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Josselin Mouette <[EMAIL PROTECTED]> (supplier of updated gnome-session package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sat, 1 Apr 2006 16:58:40 +0200
Source: gnome-session
Binary: gnome-session
Architecture: source i386
Version: 2.14.0-1
Distribution: unstable
Urgency: low
Maintainer: Josselin Mouette <[EMAIL PROTECTED]>
Changed-By: Josselin Mouette <[EMAIL PROTECTED]>
Description:
gnome-session - The GNOME 2 Session Manager
Closes: 335944
Changes:
gnome-session (2.14.0-1) unstable; urgency=low
.
[ Loic Minier ]
* Launch esd with a cwd of "/" to avoid blocking pam_mount / pam_umount,
thanks Daniel Kahn Gillmor. (Closes: #335944)
[debian/patches/07_kill_esd.diff]
.
[ Josselin Mouette ]
* New upstream release.
* Build-depend on libnotify-dev.
* Enable IPv6.
* gnome-debian-splash.sng: update for GNOME 2.14.
* 02_conversion.diff: updated for the new version.
* Build-depend on libgnome-desktop-dev.
Files:
c556e659118d8e1c7508a260b523bd87 1894 gnome optional gnome-session_2.14.0-1.dsc
15322286a77e47104b18625606824e7b 813303 gnome optional
gnome-session_2.14.0.orig.tar.gz
dd3f81baf58ebdd2bd0f449d6fe12644 69007 gnome optional
gnome-session_2.14.0-1.diff.gz
e9c6547ae53864b4d7c1302133e3edf3 495862 gnome optional
gnome-session_2.14.0-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFELpg8rSla4ddfhTMRAkY8AKDEYLHybxtOQUBDnujNZHQgkiHy+gCgsbIY
3VdrhTXEM0pQt7YTiq6u+0o=
=kiJO
-----END PGP SIGNATURE-----
--- End Message ---