Fix crash in session-settings related with ActUser

Resolves: https://redhat.atlassian.net/browse/RHEL-240874
This commit is contained in:
Joan Torres Lopez 2026-08-14 12:50:50 +02:00
parent 49465e0a09
commit f85168c2c5
No known key found for this signature in database
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 5a0c2afd7e2001a848101a8154d38fcf1b092963 Mon Sep 17 00:00:00 2001
From: Ignacio Casal Quinteiro <qignacio@amazon.com>
Date: Fri, 14 Aug 2026 11:43:09 +0200
Subject: [PATCH] gdm-session-settings: keep a ref to the user
The user needs to keep a reference so it stays alive during
the signal emissions in case the manager decides to remove
the user internally.
Part-of: <https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/392>
---
daemon/gdm-session-settings.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/daemon/gdm-session-settings.c b/daemon/gdm-session-settings.c
index fd1c097..7a604d7 100644
--- a/daemon/gdm-session-settings.c
+++ b/daemon/gdm-session-settings.c
@@ -356,6 +356,7 @@ gdm_session_settings_load (GdmSessionSettings *settings,
settings->priv->user = act_user_manager_get_user (settings->priv->user_manager,
username);
+ g_object_ref (settings->priv->user);
g_clear_object (&old_user);

View File

@ -11,7 +11,7 @@
Name: gdm
Epoch: 1
Version: 40.1
Release: 48%{?dist}
Release: 49%{?dist}
Summary: The GNOME Display Manager
License: GPLv2+
@ -83,6 +83,8 @@ Patch180002: 0001-data-Add-support-for-unified-authentication.patch
Patch190001: 0001-data-Add-PAM-substack-wrappers-to-prevent-auth-bypas.patch
Patch200001: 0001-gdm-session-settings-keep-a-ref-to-the-user.patch
# Non-upstreamable workarounds
Patch66610001: 0001-data-reap-gdm-sessions-on-shutdown.patch
@ -394,6 +396,10 @@ dconf update || :
%{_libdir}/pkgconfig/gdm-pam-extensions.pc
%changelog
* Fri Aug 14 2026 Joan Torres Lopez <joantolo@redhat.com> - 40.1-49
- Fix crash in session-settings related with ActUser
Resolves: https://redhat.atlassian.net/browse/RHEL-240874
* Fri Jul 10 2026 Joan Torres Lopez <joantolo@redhat.com> - 40.1-48
- Fix auth bypass in authselect pam substacks
Resolves: https://redhat.atlassian.net/browse/RHEL-194090