[gdm/wip/kill-user-session: 3/3] session-worker: uninitialize pam if	worker is killed
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gdm/wip/kill-user-session: 3/3] session-worker: uninitialize pam if	worker is killed
- Date: Thu, 27 Jun 2019 19:55:53 +0000 (UTC)
commit 3e8220921bb608afd06ed677104fd2244b901a28
Author: Ray Strode <rstrode redhat com>
Date:   Mon Jun 24 16:21:59 2019 -0400
    session-worker: uninitialize pam if worker is killed
    
    Right nowe don't uninitialize pam or switch back to the
    starting VT if the worker is killed before the session.
    
    This commit fixes that.
 daemon/gdm-session-worker.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 584183bc..cc565a4c 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -3555,6 +3555,10 @@ gdm_session_worker_finalize (GObject *object)
                 gdm_wait_on_pid (worker->priv->child_pid);
         }
 
+        if (worker->priv->pam_handle != NULL) {
+                gdm_session_worker_uninitialize_pam (worker, PAM_SUCCESS);
+        }
+
         g_object_unref (worker->priv->user_settings);
         g_free (worker->priv->service);
         g_free (worker->priv->x11_display_name);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]