gdm r6594 - in branches/gnome-2-24: . daemon
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6594 - in branches/gnome-2-24: . daemon
- Date: Fri, 7 Nov 2008 17:52:32 +0000 (UTC)
Author: matthiasc
Date: Fri Nov 7 17:52:32 2008
New Revision: 6594
URL: http://svn.gnome.org/viewvc/gdm?rev=6594&view=rev
Log:
Fix pam auditing
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/daemon/gdm-session-worker.c
Modified: branches/gnome-2-24/daemon/gdm-session-worker.c
==============================================================================
--- branches/gnome-2-24/daemon/gdm-session-worker.c (original)
+++ branches/gnome-2-24/daemon/gdm-session-worker.c Fri Nov 7 17:52:32 2008
@@ -974,10 +974,6 @@
if (worker->priv->pam_handle == NULL)
return;
- if (worker->priv->state >= GDM_SESSION_WORKER_STATE_ACCREDITED) {
- pam_setcred (worker->priv->pam_handle, PAM_DELETE_CRED);
- }
-
if (worker->priv->state >= GDM_SESSION_WORKER_STATE_SESSION_OPENED) {
pam_close_session (worker->priv->pam_handle, 0);
gdm_session_auditor_report_logout (worker->priv->auditor);
@@ -987,6 +983,10 @@
pam_strerror (worker->priv->pam_handle, status));
}
+ if (worker->priv->state >= GDM_SESSION_WORKER_STATE_ACCREDITED) {
+ pam_setcred (worker->priv->pam_handle, PAM_DELETE_CRED);
+ }
+
pam_end (worker->priv->pam_handle, status);
worker->priv->pam_handle = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]