[gdm/wip/kill-user-sessions: 3/3] session-worker: uninitialize pam if worker is killed



commit a15b4e3f56eee359641b65aaeb1c9ef0089e23b6
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]