public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Felipe Borges <felipeborges@gnome.org>
To: git-commits@fedoraproject.org
Subject: [rpms/gnome-remote-desktop] f45: Update to 51.1
Date: Wed, 25 Nov 2026 11:55:35 GMT	[thread overview]
Message-ID: <179560773502.1.5053026621717593763.rpms-gnome-remote-desktop-e407a806ae33@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/gnome-remote-desktop
            Branch : f45
            Commit : e407a806ae33211dcd6559c6dd820d1ade9774f7
            Author : Felipe Borges <felipeborges@gnome.org>
            Date   : 2026-11-25T11:39:40+01:00
            Stats  : +3/-1185 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/gnome-remote-desktop/c/e407a806ae33211dcd6559c6dd820d1ade9774f7?branch=f45

            Log:
            Update to 51.1

Dropping the CVE-2026-96541 downstream patch since it the changes
are now part of the upstream release.

---
diff --git a/CVE-2026-96541.patch b/CVE-2026-96541.patch
deleted file mode 100644
index 8161498..0000000
--- a/CVE-2026-96541.patch
+++ /dev/null
@@ -1,1180 +0,0 @@
-From 4bdc3dc775e4b8efb17a8d84c4a44f1d5a77501c Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Tue, 29 Sep 2026 16:50:02 +0200
-Subject: [PATCH 01/11] throttler: Keep track of active connections
-
-We only counted them; lets keep track of each one to do allow us to do
-some state tracking in the future.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-throttler.c | 21 ++++++++++++---------
- 1 file changed, 12 insertions(+), 9 deletions(-)
-
-diff --git a/src/grd-throttler.c b/src/grd-throttler.c
-index bb5052d99..a5aef8ce2 100644
---- a/src/grd-throttler.c
-+++ b/src/grd-throttler.c
-@@ -43,7 +43,7 @@ typedef struct _GrdPeer
- {
-   GrdThrottler *throttler;
-   char *name;
--  int active_connections;
-+  GPtrArray *active_connections;
-   GArray *connect_timestamps;
-   GQueue *delayed_connections;
-   int64_t last_accept_us;
-@@ -100,7 +100,7 @@ maybe_dispose_peer (GrdThrottler   *throttler,
-                     GrdPeer        *peer,
-                     GHashTableIter *iter)
- {
--  if (peer->active_connections > 0)
-+  if (peer->active_connections->len > 0)
-     return;
- 
-   if (peer->connect_timestamps && peer->connect_timestamps->len > 0)
-@@ -116,12 +116,13 @@ maybe_dispose_peer (GrdThrottler   *throttler,
- }
- 
- static void
--grd_throttler_register_connection (GrdThrottler *throttler,
--                                   GrdPeer      *peer)
-+grd_throttler_register_connection (GrdThrottler      *throttler,
-+                                   GrdPeer           *peer,
-+                                   GSocketConnection *connection)
- {
-   int64_t now_us;
- 
--  peer->active_connections++;
-+  g_ptr_array_add (peer->active_connections, connection);
-   throttler->active_connections++;
- 
-   if (!peer->connect_timestamps)
-@@ -138,10 +139,10 @@ grd_throttler_unregister_connection (GrdThrottler      *throttler,
-                                      GSocketConnection *connection,
-                                      GrdPeer           *peer)
- {
--  g_assert (peer->active_connections > 0);
-+  g_assert (g_ptr_array_find (peer->active_connections, connection, NULL));
-   g_assert (throttler->active_connections > 0);
- 
--  peer->active_connections--;
-+  g_ptr_array_remove (peer->active_connections, connection);
-   throttler->active_connections--;
- 
-   maybe_dispose_peer (throttler, peer, NULL);
-@@ -206,7 +207,7 @@ grd_throttler_allow_connection (GrdThrottler      *throttler,
-   g_object_set_qdata_full (G_OBJECT (connection), quark_remote_address,
-                            connection_data,
-                            (GDestroyNotify) connection_data_free);
--  grd_throttler_register_connection (throttler, peer);
-+  grd_throttler_register_connection (throttler, peer, connection);
- }
- 
- static gboolean
-@@ -251,7 +252,7 @@ is_connection_limit_reached (GrdThrottler *throttler,
- {
-   GrdThrottlerLimits *limits = throttler->limits;
- 
--  if (peer->active_connections >= limits->max_connections_per_peer)
-+  if (peer->active_connections->len >= limits->max_connections_per_peer)
-     return TRUE;
- 
-   if (throttler->active_connections >= limits->max_global_connections)
-@@ -404,6 +405,7 @@ ensure_peer (GrdThrottler *throttler,
-   peer->throttler = throttler;
-   peer->name = g_strdup (peer_name);
-   peer->delayed_connections = g_queue_new ();
-+  peer->active_connections = g_ptr_array_new ();
- 
-   g_hash_table_insert (throttler->peers,
-                        g_strdup (peer_name), peer);
-@@ -497,6 +499,7 @@ grd_peer_free (GrdPeer *peer)
- {
-   if (peer->delayed_connections)
-     g_queue_free_full (peer->delayed_connections, g_object_unref);
-+  g_clear_pointer (&peer->active_connections, g_ptr_array_unref);
-   g_clear_pointer (&peer->connect_timestamps, g_array_unref);
-   g_clear_pointer (&peer->name, g_free);
-   g_free (peer);
--- 
-GitLab
-
-
-From 04dd15938e97acd7f7e98040fda32f1839df645d Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Tue, 29 Sep 2026 16:50:47 +0200
-Subject: [PATCH 02/11] throttler: Rename connection data quark
-
-It was named to be specific about peer names, and also unused, but lets
-name it and prepare it to be used again.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-throttler.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/grd-throttler.c b/src/grd-throttler.c
-index a5aef8ce2..65627cd90 100644
---- a/src/grd-throttler.c
-+++ b/src/grd-throttler.c
-@@ -67,7 +67,7 @@ struct _GrdThrottler
- 
- G_DEFINE_TYPE (GrdThrottler, grd_throttler, G_TYPE_OBJECT)
- 
--static GQuark quark_remote_address;
-+static GQuark quark_connection_data;
- 
- static void
- maybe_queue_timeout (GrdThrottler *throttler);
-@@ -204,7 +204,7 @@ grd_throttler_allow_connection (GrdThrottler      *throttler,
- 
-   peer->last_accept_us = g_get_monotonic_time ();
- 
--  g_object_set_qdata_full (G_OBJECT (connection), quark_remote_address,
-+  g_object_set_qdata_full (G_OBJECT (connection), quark_connection_data,
-                            connection_data,
-                            (GDestroyNotify) connection_data_free);
-   grd_throttler_register_connection (throttler, peer, connection);
-@@ -532,6 +532,6 @@ grd_throttler_class_init (GrdThrottlerClass *klass)
- 
-   object_class->finalize = grd_throttler_finalize;
- 
--  quark_remote_address =
--    g_quark_from_static_string ("grd-remote-address-string");
-+  quark_connection_data =
-+    g_quark_from_static_string ("grd-throttler-connection-data");
- }
--- 
-GitLab
-
-
-From 72c634cc92b2e7cadf1a847c0c56a7861c3ea177 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Tue, 29 Sep 2026 22:29:02 +0200
-Subject: [PATCH 03/11] throttler: Replace global counter with function
-
-The throttler instance has a list of peers, and each peer a list of
-connections, so we already have a way to derive the count.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-throttler.c | 25 +++++++++++++++++++------
- 1 file changed, 19 insertions(+), 6 deletions(-)
-
-diff --git a/src/grd-throttler.c b/src/grd-throttler.c
-index 65627cd90..1f8985a26 100644
---- a/src/grd-throttler.c
-+++ b/src/grd-throttler.c
-@@ -55,8 +55,6 @@ struct _GrdThrottler
- 
-   GrdThrottlerLimits *limits;
- 
--  int active_connections;
--
-   GrdThrottlerAllowCallback allow_callback;
-   gpointer user_data;
- 
-@@ -123,7 +121,6 @@ grd_throttler_register_connection (GrdThrottler      *throttler,
-   int64_t now_us;
- 
-   g_ptr_array_add (peer->active_connections, connection);
--  throttler->active_connections++;
- 
-   if (!peer->connect_timestamps)
-     peer->connect_timestamps = g_array_new (FALSE, FALSE, sizeof (int64_t));
-@@ -140,10 +137,8 @@ grd_throttler_unregister_connection (GrdThrottler      *throttler,
-                                      GrdPeer           *peer)
- {
-   g_assert (g_ptr_array_find (peer->active_connections, connection, NULL));
--  g_assert (throttler->active_connections > 0);
- 
-   g_ptr_array_remove (peer->active_connections, connection);
--  throttler->active_connections--;
- 
-   maybe_dispose_peer (throttler, peer, NULL);
-   maybe_queue_timeout (throttler);
-@@ -246,6 +241,24 @@ prune_closed_connections (GQueue *queue)
-     }
- }
- 
-+static int
-+count_active_connections (GrdThrottler *throttler)
-+{
-+  GHashTableIter iter;
-+  gpointer key, value;
-+  int count = 0;
-+
-+  g_hash_table_iter_init (&iter, throttler->peers);
-+  while (g_hash_table_iter_next (&iter, &key, &value))
-+    {
-+      GrdPeer *peer = value;
-+
-+      count += peer->active_connections->len;
-+    }
-+
-+  return count;
-+}
-+
- static gboolean
- is_connection_limit_reached (GrdThrottler *throttler,
-                              GrdPeer      *peer)
-@@ -255,7 +268,7 @@ is_connection_limit_reached (GrdThrottler *throttler,
-   if (peer->active_connections->len >= limits->max_connections_per_peer)
-     return TRUE;
- 
--  if (throttler->active_connections >= limits->max_global_connections)
-+  if (count_active_connections (throttler) >= limits->max_global_connections)
-     return TRUE;
- 
-   return FALSE;
--- 
-GitLab
-
-
-From cf336009550240b369df99c165540f2fa46494fe Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Wed, 30 Sep 2026 00:46:49 +0200
-Subject: [PATCH 04/11] throttler: Bump global pending connection limit to 1000
-
-Before we had 5 as the limit per peer, and 10 global. That meant 2 peers
-could easily cause any other peer to fail to connect. Change the limit
-to 1000, meaning one need at least 200.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-throttler.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/grd-throttler.c b/src/grd-throttler.c
-index 1f8985a26..fdab7d93b 100644
---- a/src/grd-throttler.c
-+++ b/src/grd-throttler.c
-@@ -27,7 +27,7 @@
- 
- #define DEFAULT_MAX_CONNECTIONS_PER_PEER 5
- #define DEFAULT_MAX_PENDING_CONNECTIONS 5
--#define DEFAULT_MAX_ATTEMPTS_PER_SECOND 10
-+#define DEFAULT_MAX_ATTEMPTS_PER_SECOND 1000
- 
- struct _GrdThrottlerLimits
- {
--- 
-GitLab
-
-
-From d9f45019fc584a0f76c1ef26d76dc01aa0c318dc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Wed, 30 Sep 2026 21:45:03 +0200
-Subject: [PATCH 05/11] session/rdp: Actively shut down reading of the socket
- when stopping
-
-If we don't call shutdown() on the socket file descriptor shutting down
-reading, we might not return any current recv() call in the socket
-thread until the remote peer disconnects from its end, so make sure we
-stop reading when stopping the session.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-session-rdp.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
-index f3ba72097..6df8e3c3b 100644
---- a/src/grd-session-rdp.c
-+++ b/src/grd-session-rdp.c
-@@ -1985,7 +1985,10 @@ grd_session_rdp_stop (GrdSession *session)
-   g_clear_object (&rdp_peer_context->telemetry);
-   g_mutex_unlock (&rdp_peer_context->channel_mutex);
- 
-+  g_socket_shutdown (g_socket_connection_get_socket (session_rdp->connection),
-+                     TRUE, FALSE, NULL);
-   g_clear_pointer (&session_rdp->socket_thread, g_thread_join);
-+
-   g_clear_handle_id (&session_rdp->notify_post_connected_source_id,
-                      g_source_remove);
- 
--- 
-GitLab
-
-
-From b879b1b620c010c557031229642c062a215c35dd Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Wed, 30 Sep 2026 23:31:51 +0200
-Subject: [PATCH 06/11] rdp-server: Track sessions in a hash table
-
-The key is the socket connection for the client connection, and the
-value is the session. The key (connection) is owned by the session, and
-the session is effectively owned by the hash table.
-
-When a session has stopped itself (e.g. client disconnect), we notify
-the server about it, and it will move the session to a to-close list
-freed in an idle callback, just as before. When stopping a session for
-some other reason (e.g. tear down), we instead disconnect the signal
-handlers, and handle the freeing without any idle callback. This is done
-so that we can rely on removing a hash table entry to both stop and free
-a session.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-rdp-server.c  | 70 +++++++++++++++++++++++++++++--------------
- src/grd-session-rdp.c |  2 +-
- 2 files changed, 49 insertions(+), 23 deletions(-)
-
-diff --git a/src/grd-rdp-server.c b/src/grd-rdp-server.c
-index 218012695..11351a422 100644
---- a/src/grd-rdp-server.c
-+++ b/src/grd-rdp-server.c
-@@ -63,7 +63,7 @@ struct _GrdRdpServer
- 
-   GrdThrottler *throttler;
- 
--  GList *sessions;
-+  GHashTable *sessions;
- 
-   GList *stopped_sessions;
-   guint cleanup_sessions_idle_id;
-@@ -149,11 +149,18 @@ static void
- on_session_stopped (GrdSession   *session,
-                     GrdRdpServer *rdp_server)
- {
-+  GSocketConnection *connection;
-+  gboolean stole;
-+
-   g_debug ("RDP session stopped");
- 
-   rdp_server->stopped_sessions = g_list_append (rdp_server->stopped_sessions,
-                                                 session);
--  rdp_server->sessions = g_list_remove (rdp_server->sessions, session);
-+
-+  connection = grd_session_rdp_get_socket_connection (GRD_SESSION_RDP (session));
-+  stole = g_hash_table_steal (rdp_server->sessions, connection);
-+  g_assert (stole);
-+
-   if (!rdp_server->cleanup_sessions_idle_id)
-     {
-       rdp_server->cleanup_sessions_idle_id =
-@@ -163,9 +170,13 @@ on_session_stopped (GrdSession   *session,
- }
- 
- static void
--maybe_stop_session (GrdSession *session,
--                    GrdSession *session_to_ignore)
-+maybe_stop_session (gpointer key,
-+                    gpointer value,
-+                    gpointer user_data)
- {
-+  GrdSession *session = GRD_SESSION (value);
-+  GrdSession *session_to_ignore = GRD_SESSION (user_data);
-+
-   if (session == session_to_ignore)
-     return;
- 
-@@ -188,9 +199,9 @@ on_session_post_connect (GrdSessionRdp *session_rdp,
-   if (runtime_mode == GRD_RUNTIME_MODE_HANDOVER ||
-       runtime_mode == GRD_RUNTIME_MODE_HEADLESS)
-     {
--      g_list_foreach (rdp_server->sessions,
--                      (GFunc) maybe_stop_session,
--                      GRD_SESSION (session_rdp));
-+      g_hash_table_foreach (rdp_server->sessions,
-+                            maybe_stop_session,
-+                            session_rdp);
-     }
- }
- 
-@@ -232,7 +243,7 @@ on_routing_token_peeked (GObject      *source_object,
-       if (!(session_rdp = grd_session_rdp_new (rdp_server, connection)))
-         return;
- 
--      rdp_server->sessions = g_list_append (rdp_server->sessions, session_rdp);
-+      g_hash_table_insert (rdp_server->sessions, connection, session_rdp);
- 
-       g_signal_connect (session_rdp, "stopped",
-                         G_CALLBACK (on_session_stopped),
-@@ -279,7 +290,7 @@ accept_connection (GrdRdpServer      *rdp_server,
-   if (!(session_rdp = grd_session_rdp_new (rdp_server, connection)))
-     return;
- 
--  rdp_server->sessions = g_list_append (rdp_server->sessions, session_rdp);
-+  g_hash_table_insert (rdp_server->sessions, connection, session_rdp);
- 
-   g_signal_connect (session_rdp, "stopped",
-                     G_CALLBACK (on_session_stopped),
-@@ -322,12 +333,7 @@ grd_rdp_server_notify_incoming (GSocketService    *service,
- void
- grd_rdp_server_stop_sessions (GrdRdpServer *rdp_server)
- {
--  while (rdp_server->sessions)
--    {
--      GrdSession *session = rdp_server->sessions->data;
--
--      grd_session_stop (session);
--    }
-+  g_hash_table_remove_all (rdp_server->sessions);
- }
- 
- static gboolean
-@@ -483,12 +489,7 @@ grd_rdp_server_stop (GrdRdpServer *rdp_server)
-   grd_dbus_remote_desktop_rdp_server_set_enabled (rdp_server_iface, FALSE);
-   grd_dbus_remote_desktop_rdp_server_set_port (rdp_server_iface, -1);
- 
--  while (rdp_server->sessions)
--    {
--      GrdSession *session = rdp_server->sessions->data;
--
--      grd_session_stop (session);
--    }
-+  g_hash_table_remove_all (rdp_server->sessions);
- 
-   g_clear_handle_id (&rdp_server->cleanup_sessions_idle_id, g_source_remove);
-   grd_rdp_server_cleanup_stopped_sessions (rdp_server);
-@@ -550,7 +551,7 @@ grd_rdp_server_dispose (GObject *object)
- {
-   GrdRdpServer *rdp_server = GRD_RDP_SERVER (object);
- 
--  g_assert (!rdp_server->sessions);
-+  g_assert (g_hash_table_size (rdp_server->sessions) == 0);
-   g_assert (!rdp_server->binding_timeout_source_id);
-   g_assert (!rdp_server->cleanup_sessions_idle_id);
-   g_assert (!rdp_server->stopped_sessions);
-@@ -562,6 +563,27 @@ grd_rdp_server_dispose (GObject *object)
-   G_OBJECT_CLASS (grd_rdp_server_parent_class)->dispose (object);
- }
- 
-+static void
-+grd_rdp_server_finalize (GObject *object)
-+{
-+  GrdRdpServer *rdp_server = GRD_RDP_SERVER (object);
-+
-+  g_clear_pointer (&rdp_server->sessions, g_hash_table_unref);
-+
-+  G_OBJECT_CLASS (grd_rdp_server_parent_class)->finalize (object);
-+}
-+
-+static void
-+stop_session (gpointer user_data)
-+{
-+  GrdSessionRdp *session_rdp = GRD_SESSION_RDP (user_data);
-+  GrdRdpServer *rdp_server = grd_session_rdp_get_server (session_rdp);
-+
-+  g_signal_handlers_disconnect_by_data (session_rdp, rdp_server);
-+  grd_session_stop (GRD_SESSION (session_rdp));
-+  g_object_unref (session_rdp);
-+}
-+
- static void
- grd_rdp_server_constructed (GObject *object)
- {
-@@ -570,6 +592,9 @@ grd_rdp_server_constructed (GObject *object)
-     grd_context_get_runtime_mode (rdp_server->context);
-   GrdThrottlerAllowCallback allow_callback = NULL;
- 
-+  rdp_server->sessions = g_hash_table_new_full (NULL, NULL,
-+                                                NULL, stop_session);
-+
-   switch (runtime_mode)
-     {
-     case GRD_RUNTIME_MODE_SCREEN_SHARE:
-@@ -617,6 +642,7 @@ grd_rdp_server_class_init (GrdRdpServerClass *klass)
-   object_class->set_property = grd_rdp_server_set_property;
-   object_class->get_property = grd_rdp_server_get_property;
-   object_class->dispose = grd_rdp_server_dispose;
-+  object_class->finalize = grd_rdp_server_finalize;
-   object_class->constructed = grd_rdp_server_constructed;
- 
-   g_object_class_install_property (object_class,
-diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
-index 6df8e3c3b..40adf04d8 100644
---- a/src/grd-session-rdp.c
-+++ b/src/grd-session-rdp.c
-@@ -2006,7 +2006,7 @@ grd_session_rdp_stop (GrdSession *session)
-   g_clear_object (&session_rdp->renderer);
- 
-   peer->Close (peer);
--  g_clear_object (&session_rdp->connection);
-+  g_io_stream_close (G_IO_STREAM (session_rdp->connection), NULL, NULL);
- 
-   g_clear_object (&rdp_peer_context->network_autodetection);
- 
--- 
-GitLab
-
-
-From 2b807428399077ee8ac580a577582bbec27f63d1 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Tue, 29 Sep 2026 16:51:52 +0200
-Subject: [PATCH 07/11] session: Add 'starting' signal
-
-This will be used to emit a signal before a session is started, after a
-connection is authenticated.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-session.c | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/src/grd-session.c b/src/grd-session.c
-index c2a8682eb..7f452d0ce 100644
---- a/src/grd-session.c
-+++ b/src/grd-session.c
-@@ -50,6 +50,7 @@ enum
- enum
- {
-   READY,
-+  STARTING,
-   STARTED,
-   STOPPED,
-   TOUCH_DEVICE_ADDED,
-@@ -1796,6 +1797,8 @@ grd_session_start (GrdSession *session)
-   GrdSessionPrivate *priv = grd_session_get_instance_private (session);
-   GrdDBusMutterRemoteDesktop *remote_desktop_proxy;
- 
-+  g_signal_emit (session, signals[STARTING], 0);
-+
-   priv->cancellable = g_cancellable_new ();
- 
-   remote_desktop_proxy = grd_context_get_mutter_remote_desktop_proxy (priv->context);
-@@ -1962,6 +1965,12 @@ grd_session_class_init (GrdSessionClass *klass)
-                                  0,
-                                  NULL, NULL, NULL,
-                                  G_TYPE_NONE, 0);
-+  signals[STARTING] = g_signal_new ("starting",
-+                                    G_TYPE_FROM_CLASS (klass),
-+                                    G_SIGNAL_RUN_LAST,
-+                                    0,
-+                                    NULL, NULL, NULL,
-+                                    G_TYPE_NONE, 0);
-   signals[STARTED] = g_signal_new ("started",
-                                    G_TYPE_FROM_CLASS (klass),
-                                    G_SIGNAL_RUN_LAST,
--- 
-GitLab
-
-
-From 71502c97db828ff28bde5925d427db45b22bfff4 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Wed, 30 Sep 2026 23:35:46 +0200
-Subject: [PATCH 08/11] session/vnc: Add server back pointer
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-session-vnc.c | 10 ++++++++++
- src/grd-session-vnc.h |  2 ++
- 2 files changed, 12 insertions(+)
-
-diff --git a/src/grd-session-vnc.c b/src/grd-session-vnc.c
-index 1f4900065..377d76919 100644
---- a/src/grd-session-vnc.c
-+++ b/src/grd-session-vnc.c
-@@ -47,6 +47,8 @@ struct _GrdSessionVnc
- {
-   GrdSession parent;
- 
-+  GrdVncServer *server;
-+
-   GSocketConnection *connection;
-   GSource *source;
-   rfbScreenInfoPtr rfb_screen;
-@@ -626,6 +628,13 @@ grd_session_vnc_get_stride_for_width (GrdSessionVnc *session_vnc,
-                                       int            width)
- {
-   return width * BGRX_BYTES_PER_PIXEL;
-+
-+}
-+
-+GrdVncServer *
-+grd_session_vnc_get_server (GrdSessionVnc *session_vnc)
-+{
-+  return session_vnc->server;
- }
- 
- static void
-@@ -793,6 +802,7 @@ grd_session_vnc_new (GrdVncServer      *vnc_server,
-                               "context", context,
-                               NULL);
- 
-+  session_vnc->server = vnc_server;
-   session_vnc->connection = g_object_ref (connection);
- 
-   settings = grd_context_get_settings (context);
-diff --git a/src/grd-session-vnc.h b/src/grd-session-vnc.h
-index cba7e3ee5..d50195082 100644
---- a/src/grd-session-vnc.h
-+++ b/src/grd-session-vnc.h
-@@ -65,3 +65,5 @@ int grd_session_vnc_get_stride_for_width (GrdSessionVnc *session_vnc,
- gboolean grd_session_vnc_is_client_gone (GrdSessionVnc *session_vnc);
- 
- void grd_session_vnc_notify_error (GrdSessionVnc *session_vnc);
-+
-+GrdVncServer * grd_session_vnc_get_server (GrdSessionVnc *session_vnc);
--- 
-GitLab
-
-
-From a66d55a5d85f591b2acf83d65c011d4c0a45a172 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Wed, 30 Sep 2026 23:36:16 +0200
-Subject: [PATCH 09/11] session/vnc: Add getter for the socket connection
-
-This will be used for tracking sessions from connections in a later
-commit.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-session-vnc.c | 6 ++++++
- src/grd-session-vnc.h | 2 ++
- 2 files changed, 8 insertions(+)
-
-diff --git a/src/grd-session-vnc.c b/src/grd-session-vnc.c
-index 377d76919..9c0ae2745 100644
---- a/src/grd-session-vnc.c
-+++ b/src/grd-session-vnc.c
-@@ -637,6 +637,12 @@ grd_session_vnc_get_server (GrdSessionVnc *session_vnc)
-   return session_vnc->server;
- }
- 
-+GSocketConnection *
-+grd_session_vnc_get_socket_connection (GrdSessionVnc *session_vnc)
-+{
-+  return session_vnc->connection;
-+}
-+
- static void
- init_vnc_session (GrdSessionVnc *session_vnc)
- {
-diff --git a/src/grd-session-vnc.h b/src/grd-session-vnc.h
-index d50195082..625cb9357 100644
---- a/src/grd-session-vnc.h
-+++ b/src/grd-session-vnc.h
-@@ -67,3 +67,5 @@ gboolean grd_session_vnc_is_client_gone (GrdSessionVnc *session_vnc);
- void grd_session_vnc_notify_error (GrdSessionVnc *session_vnc);
- 
- GrdVncServer * grd_session_vnc_get_server (GrdSessionVnc *session_vnc);
-+
-+GSocketConnection * grd_session_vnc_get_socket_connection (GrdSessionVnc *session_vnc);
--- 
-GitLab
-
-
-From b3ff0f961a57727182214fccc46188192e1e367f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Wed, 30 Sep 2026 23:37:43 +0200
-Subject: [PATCH 10/11] vnc-server: Track sessions in a hash table
-
-Just like for the RDP server, is the key the socket connection for the
-client connection, and the value is the session. The key (connection) is
-owned by the session, and the session is effectively owned by the hash
-table.
-
-When a session has stopped itself (e.g. client disconnect), we notify
-the server about it, and it will move the session to a to-close list
-freed in an idle callback, just as before. When stopping a session for
-some other reason (e.g. tear down), we instead disconnect the signal
-handlers, and handle the freeing without any idle callback. This is done
-so that we can rely on removing a hash table entry to both stop and free
-a session.
-
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-session-vnc.c |  4 +++-
- src/grd-vnc-server.c  | 47 ++++++++++++++++++++++++++++++++++---------
- 2 files changed, 40 insertions(+), 11 deletions(-)
-
-diff --git a/src/grd-session-vnc.c b/src/grd-session-vnc.c
-index 9c0ae2745..b881b725d 100644
---- a/src/grd-session-vnc.c
-+++ b/src/grd-session-vnc.c
-@@ -836,6 +836,7 @@ grd_session_vnc_dispose (GObject *object)
-   g_assert (!session_vnc->rfb_screen);
- 
-   g_clear_pointer (&session_vnc->pressed_keys, g_hash_table_unref);
-+  g_clear_object (&session_vnc->connection);
- 
-   G_OBJECT_CLASS (grd_session_vnc_parent_class)->dispose (object);
- }
-@@ -866,7 +867,8 @@ grd_session_vnc_stop (GrdSession *session)
- 
-   grd_session_vnc_detach_source (session_vnc);
- 
--  g_clear_object (&session_vnc->connection);
-+  g_io_stream_close (G_IO_STREAM (session_vnc->connection), NULL, NULL);
-+
-   g_clear_object (&session_vnc->clipboard_vnc);
-   g_clear_pointer (&session_vnc->rfb_screen->frameBuffer, g_free);
-   g_clear_pointer (&session_vnc->rfb_screen, rfbScreenCleanup);
-diff --git a/src/grd-vnc-server.c b/src/grd-vnc-server.c
-index 49f160563..c1ed674db 100644
---- a/src/grd-vnc-server.c
-+++ b/src/grd-vnc-server.c
-@@ -46,7 +46,7 @@ struct _GrdVncServer
- 
-   GrdThrottler *throttler;
- 
--  GList *sessions;
-+  GHashTable *sessions;
- 
-   GList *stopped_sessions;
-   guint cleanup_sessions_idle_id;
-@@ -98,11 +98,18 @@ cleanup_stopped_sessions_idle (GrdVncServer *vnc_server)
- static void
- on_session_stopped (GrdSession *session, GrdVncServer *vnc_server)
- {
-+  GSocketConnection *connection;
-+  gboolean stole;
-+
-   g_debug ("VNC session stopped");
- 
-   vnc_server->stopped_sessions = g_list_append (vnc_server->stopped_sessions,
-                                                 session);
--  vnc_server->sessions = g_list_remove (vnc_server->sessions, session);
-+
-+  connection = grd_session_vnc_get_socket_connection (GRD_SESSION_VNC (session));
-+  stole = g_hash_table_steal (vnc_server->sessions, connection);
-+  g_assert (stole);
-+
-   if (!vnc_server->cleanup_sessions_idle_id)
-     {
-       vnc_server->cleanup_sessions_idle_id =
-@@ -122,7 +129,7 @@ allow_connection_cb (GrdThrottler      *throttler,
-   g_debug ("Creating new VNC session");
- 
-   session_vnc = grd_session_vnc_new (vnc_server, connection);
--  vnc_server->sessions = g_list_append (vnc_server->sessions, session_vnc);
-+  g_hash_table_insert (vnc_server->sessions, connection, session_vnc);
- 
-   g_signal_connect (session_vnc, "stopped",
-                     G_CALLBACK (on_session_stopped),
-@@ -187,12 +194,7 @@ grd_vnc_server_stop (GrdVncServer *vnc_server)
-   grd_dbus_remote_desktop_vnc_server_set_enabled (vnc_server_iface, FALSE);
-   grd_dbus_remote_desktop_vnc_server_set_port (vnc_server_iface, -1);
- 
--  while (vnc_server->sessions)
--    {
--      GrdSession *session = vnc_server->sessions->data;
--
--      grd_session_stop (session);
--    }
-+  g_hash_table_remove_all (vnc_server->sessions);
- 
-   grd_vnc_server_cleanup_stopped_sessions (vnc_server);
-   g_clear_handle_id (&vnc_server->cleanup_sessions_idle_id,
-@@ -244,7 +246,7 @@ grd_vnc_server_dispose (GObject *object)
- {
-   GrdVncServer *vnc_server = GRD_VNC_SERVER (object);
- 
--  g_assert (!vnc_server->sessions);
-+  g_assert (g_hash_table_size (vnc_server->sessions) == 0);
-   g_assert (!vnc_server->stopped_sessions);
-   g_assert (!vnc_server->cleanup_sessions_idle_id);
-   g_assert (!vnc_server->throttler);
-@@ -252,6 +254,27 @@ grd_vnc_server_dispose (GObject *object)
-   G_OBJECT_CLASS (grd_vnc_server_parent_class)->dispose (object);
- }
- 
-+static void
-+grd_vnc_server_finalize (GObject *object)
-+{
-+  GrdVncServer *vnc_server = GRD_VNC_SERVER (object);
-+
-+  g_clear_pointer (&vnc_server->sessions, g_hash_table_unref);
-+
-+  G_OBJECT_CLASS (grd_vnc_server_parent_class)->finalize (object);
-+}
-+
-+static void
-+stop_session (gpointer user_data)
-+{
-+  GrdSessionVnc *session_vnc = GRD_SESSION_VNC (user_data);
-+  GrdVncServer *vnc_server = grd_session_vnc_get_server (session_vnc);
-+
-+  g_signal_handlers_disconnect_by_data (session_vnc, vnc_server);
-+  grd_session_stop (GRD_SESSION (session_vnc));
-+  g_object_unref (session_vnc);
-+}
-+
- static void
- grd_vnc_server_constructed (GObject *object)
- {
-@@ -263,6 +286,9 @@ grd_vnc_server_constructed (GObject *object)
-   else
-     rfbLogEnable (0);
- 
-+  vnc_server->sessions = g_hash_table_new_full (NULL, NULL,
-+                                                NULL, stop_session);
-+
-   limits = grd_throttler_limits_new (vnc_server->context);
-   /* TODO: Add the rfbScreen instance to GrdVncServer to support multiple
-    * sessions. */
-@@ -287,6 +313,7 @@ grd_vnc_server_class_init (GrdVncServerClass *klass)
-   object_class->set_property = grd_vnc_server_set_property;
-   object_class->get_property = grd_vnc_server_get_property;
-   object_class->dispose = grd_vnc_server_dispose;
-+  object_class->finalize = grd_vnc_server_finalize;
-   object_class->constructed = grd_vnc_server_constructed;
- 
-   g_object_class_install_property (object_class,
--- 
-GitLab
-
-
-From 9b4f5e370eb8a833b7e1f4c2a873681c625e4673 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
-Date: Wed, 30 Sep 2026 23:51:17 +0200
-Subject: [PATCH 11/11] throttler: Introduce authentication timeout
-
-If a connection that got allowed through by the throttler isn't marked
-as 'authenticated' by the throttler owner (i.e. VNC/RDP server), then
-the session and connection is closed.
-
-The timeout is currently set to 30 seconds.
-
-CVE: CVE-2026-96541
-Closes: https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/issues/356
-Part-of: <https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/merge_requests/436>
----
- src/grd-rdp-server.c |  22 +++++++
- src/grd-throttler.c  | 146 +++++++++++++++++++++++++++++++++++++++++++
- src/grd-throttler.h  |   4 ++
- src/grd-vnc-server.c |  28 +++++++++
- 4 files changed, 200 insertions(+)
-
-diff --git a/src/grd-rdp-server.c b/src/grd-rdp-server.c
-index 11351a422..78cdbaff3 100644
---- a/src/grd-rdp-server.c
-+++ b/src/grd-rdp-server.c
-@@ -192,6 +192,14 @@ on_session_post_connect (GrdSessionRdp *session_rdp,
-   GrdRuntimeMode runtime_mode =
-     grd_context_get_runtime_mode (rdp_server->context);
- 
-+  if (rdp_server->throttler)
-+    {
-+      GSocketConnection *connection;
-+
-+      connection = grd_session_rdp_get_socket_connection (session_rdp);
-+      grd_throttler_notify_authenticated (rdp_server->throttler, connection);
-+    }
-+
-   g_signal_emit (rdp_server, signals[INCOMING_NEW_CONNECTION], 0, session_rdp);
- 
-   grd_dbus_remote_desktop_rdp_server_emit_new_connection (rdp_server_iface);
-@@ -573,6 +581,17 @@ grd_rdp_server_finalize (GObject *object)
-   G_OBJECT_CLASS (grd_rdp_server_parent_class)->finalize (object);
- }
- 
-+static void
-+on_connection_timed_out (GrdThrottler      *throttler,
-+                         GSocketConnection *connection,
-+                         GrdRdpServer      *rdp_server)
-+{
-+  gboolean removed;
-+
-+  removed = g_hash_table_remove (rdp_server->sessions, connection);
-+  g_assert (removed);
-+}
-+
- static void
- stop_session (gpointer user_data)
- {
-@@ -614,6 +633,9 @@ grd_rdp_server_constructed (GObject *object)
-         grd_throttler_new (grd_throttler_limits_new (rdp_server->context),
-                            allow_callback,
-                            rdp_server);
-+      g_signal_connect (rdp_server->throttler, "connection-timed-out",
-+                        G_CALLBACK (on_connection_timed_out),
-+                        rdp_server);
-     }
- 
-   rdp_server->pending_binding_attempts = RDP_SERVER_N_BINDING_ATTEMPTS;
-diff --git a/src/grd-throttler.c b/src/grd-throttler.c
-index fdab7d93b..9b25787b1 100644
---- a/src/grd-throttler.c
-+++ b/src/grd-throttler.c
-@@ -29,6 +29,17 @@
- #define DEFAULT_MAX_PENDING_CONNECTIONS 5
- #define DEFAULT_MAX_ATTEMPTS_PER_SECOND 1000
- 
-+#define AUTHENTICATE_TIMEOUT_US s2us (30)
-+
-+enum
-+{
-+  CONNECTION_TIMED_OUT,
-+
-+  N_SIGNALS
-+};
-+
-+static guint signals[N_SIGNALS];
-+
- struct _GrdThrottlerLimits
- {
-   int max_global_connections;
-@@ -61,6 +72,7 @@ struct _GrdThrottler
-   GHashTable *peers;
- 
-   GSource *delayed_connections_source;
-+  GSource *auth_timeout_source;
- };
- 
- G_DEFINE_TYPE (GrdThrottler, grd_throttler, G_TYPE_OBJECT)
-@@ -70,6 +82,14 @@ static GQuark quark_connection_data;
- static void
- maybe_queue_timeout (GrdThrottler *throttler);
- 
-+static void
-+maybe_queue_auth_timeout (GrdThrottler *throttler);
-+
-+static void
-+grd_throttler_unregister_connection (GrdThrottler      *throttler,
-+                                     GSocketConnection *connection,
-+                                     GrdPeer           *peer);
-+
- static void
- prune_old_timestamps (GArray  *timestamps,
-                       int64_t  now_us)
-@@ -129,6 +149,8 @@ grd_throttler_register_connection (GrdThrottler      *throttler,
- 
-   prune_old_timestamps (peer->connect_timestamps, now_us);
-   g_array_append_val (peer->connect_timestamps, now_us);
-+
-+  maybe_queue_auth_timeout (throttler);
- }
- 
- static void
-@@ -157,7 +179,9 @@ typedef struct _ConnectionData
- {
-   GrdThrottler *throttler;
-   char *peer_name;
-+  int64_t connect_time_us;
-   GSocketConnection *connection;
-+  gboolean is_authenticated;
- } ConnectionData;
- 
- static void
-@@ -194,6 +218,7 @@ grd_throttler_allow_connection (GrdThrottler      *throttler,
-   g_set_weak_pointer (&connection_data->throttler, throttler);
-   connection_data->connection = connection;
-   connection_data->peer_name = g_strdup (peer->name);
-+  connection_data->connect_time_us = g_get_monotonic_time ();
- 
-   throttler->allow_callback (throttler, connection, throttler->user_data);
- 
-@@ -467,6 +492,118 @@ grd_throttler_handle_connection (GrdThrottler      *throttler,
-   maybe_delay_connection (throttler, connection, peer, now_us);
- }
- 
-+static gboolean
-+dispatch_auth_timeout (gpointer user_data)
-+{
-+  GrdThrottler *throttler = GRD_THROTTLER (user_data);
-+  GHashTableIter iter;
-+  gpointer key, value;
-+  int64_t now_us;
-+
-+  now_us = g_get_monotonic_time ();
-+
-+  g_hash_table_iter_init (&iter, throttler->peers);
-+  while (g_hash_table_iter_next (&iter, &key, &value))
-+    {
-+      GrdPeer *peer = value;
-+      int i;
-+
-+      for (i = 0; i < peer->active_connections->len; i++)
-+        {
-+          GSocketConnection *connection =
-+            g_ptr_array_index (peer->active_connections, i);
-+          ConnectionData *connection_data;
-+
-+          connection_data = g_object_get_qdata (G_OBJECT (connection),
-+                                                quark_connection_data);
-+          if (connection_data->is_authenticated)
-+            continue;
-+
-+          if (connection_data->connect_time_us + AUTHENTICATE_TIMEOUT_US <
-+              now_us)
-+            {
-+              g_debug ("[Throttler] Connection from %s timeout out",
-+                       peer->name);
-+              g_signal_emit (throttler, signals[CONNECTION_TIMED_OUT], 0,
-+                             connection);
-+            }
-+        }
-+    }
-+
-+  maybe_queue_auth_timeout (throttler);
-+
-+  return G_SOURCE_CONTINUE;
-+}
-+
-+static void
-+ensure_auth_timeout_source (GrdThrottler *throttler)
-+{
-+  if (throttler->auth_timeout_source)
-+    return;
-+
-+  throttler->auth_timeout_source = g_source_new (&source_funcs,
-+                                                 sizeof (GSource));
-+  g_source_set_callback (throttler->auth_timeout_source,
-+                         dispatch_auth_timeout, throttler, NULL);
-+  g_source_attach (throttler->auth_timeout_source, NULL);
-+  g_source_unref (throttler->auth_timeout_source);
-+}
-+
-+static void
-+maybe_queue_auth_timeout (GrdThrottler *throttler)
-+{
-+  GHashTableIter iter;
-+  gpointer key, value;
-+  int64_t next_timeout_us = INT64_MAX;
-+
-+  g_hash_table_iter_init (&iter, throttler->peers);
-+  while (g_hash_table_iter_next (&iter, &key, &value))
-+    {
-+      GrdPeer *peer = value;
-+      int i;
-+
-+      for (i = 0; i < peer->active_connections->len; i++)
-+        {
-+          GSocketConnection *connection =
-+            g_ptr_array_index (peer->active_connections, i);
-+          ConnectionData *connection_data;
-+
-+          connection_data = g_object_get_qdata (G_OBJECT (connection),
-+                                                quark_connection_data);
-+          if (connection_data->is_authenticated)
-+            continue;
-+
-+          next_timeout_us = MIN (next_timeout_us,
-+                                 connection_data->connect_time_us +
-+                                 AUTHENTICATE_TIMEOUT_US);
-+        }
-+    }
-+
-+  if (next_timeout_us == INT64_MAX)
-+    next_timeout_us = -1;
-+
-+  if (next_timeout_us >= 0)
-+    {
-+      ensure_auth_timeout_source (throttler);
-+      g_source_set_ready_time (throttler->auth_timeout_source,
-+                               next_timeout_us);
-+    }
-+}
-+
-+void
-+grd_throttler_notify_authenticated (GrdThrottler      *throttler,
-+                                    GSocketConnection *connection)
-+{
-+  ConnectionData *connection_data;
-+
-+  connection_data = g_object_get_qdata (G_OBJECT (connection),
-+                                        quark_connection_data);
-+  g_assert (connection_data);
-+  connection_data->is_authenticated = TRUE;
-+
-+  maybe_queue_auth_timeout (throttler);
-+}
-+
- void
- grd_throttler_limits_set_max_global_connections (GrdThrottlerLimits *limits,
-                                                  int                 limit)
-@@ -524,6 +661,7 @@ grd_throttler_finalize (GObject *object)
-   GrdThrottler *throttler = GRD_THROTTLER(object);
- 
-   g_clear_pointer (&throttler->delayed_connections_source, g_source_destroy);
-+  g_clear_pointer (&throttler->auth_timeout_source, g_source_destroy);
-   g_clear_pointer (&throttler->peers, g_hash_table_unref);
-   g_clear_pointer (&throttler->limits, g_free);
- 
-@@ -545,6 +683,14 @@ grd_throttler_class_init (GrdThrottlerClass *klass)
- 
-   object_class->finalize = grd_throttler_finalize;
- 
-+  signals[CONNECTION_TIMED_OUT] = g_signal_new ("connection-timed-out",
-+                                                G_TYPE_FROM_CLASS (klass),
-+                                                G_SIGNAL_RUN_LAST,
-+                                                0,
-+                                                NULL, NULL, NULL,
-+                                                G_TYPE_NONE, 1,
-+                                                G_TYPE_SOCKET_CONNECTION);
-+
-   quark_connection_data =
-     g_quark_from_static_string ("grd-throttler-connection-data");
- }
-diff --git a/src/grd-throttler.h b/src/grd-throttler.h
-index a95542029..94d953900 100644
---- a/src/grd-throttler.h
-+++ b/src/grd-throttler.h
-@@ -38,6 +38,10 @@ void
- grd_throttler_handle_connection (GrdThrottler      *throttler,
-                                  GSocketConnection *connection);
- 
-+void
-+grd_throttler_notify_authenticated (GrdThrottler      *throttler,
-+                                    GSocketConnection *connection);
-+
- void
- grd_throttler_limits_set_max_global_connections (GrdThrottlerLimits *limits,
-                                                  int                 limit);
-diff --git a/src/grd-vnc-server.c b/src/grd-vnc-server.c
-index c1ed674db..f56a1d524 100644
---- a/src/grd-vnc-server.c
-+++ b/src/grd-vnc-server.c
-@@ -95,6 +95,17 @@ cleanup_stopped_sessions_idle (GrdVncServer *vnc_server)
-   return G_SOURCE_REMOVE;
- }
- 
-+static void
-+on_session_starting (GrdSession   *session,
-+                     GrdVncServer *vnc_server)
-+{
-+  GrdSessionVnc *session_vnc = GRD_SESSION_VNC (session);
-+  GSocketConnection *connection;
-+
-+  connection = grd_session_vnc_get_socket_connection (session_vnc);
-+  grd_throttler_notify_authenticated (vnc_server->throttler, connection);
-+}
-+
- static void
- on_session_stopped (GrdSession *session, GrdVncServer *vnc_server)
- {
-@@ -131,6 +142,9 @@ allow_connection_cb (GrdThrottler      *throttler,
-   session_vnc = grd_session_vnc_new (vnc_server, connection);
-   g_hash_table_insert (vnc_server->sessions, connection, session_vnc);
- 
-+  g_signal_connect (session_vnc, "starting",
-+                    G_CALLBACK (on_session_starting),
-+                    vnc_server);
-   g_signal_connect (session_vnc, "stopped",
-                     G_CALLBACK (on_session_stopped),
-                     vnc_server);
-@@ -264,6 +278,17 @@ grd_vnc_server_finalize (GObject *object)
-   G_OBJECT_CLASS (grd_vnc_server_parent_class)->finalize (object);
- }
- 
-+static void
-+on_connection_timed_out (GrdThrottler      *throttler,
-+                         GSocketConnection *connection,
-+                         GrdVncServer      *vnc_server)
-+{
-+  gboolean removed;
-+
-+  removed = g_hash_table_remove (vnc_server->sessions, connection);
-+  g_assert (removed);
-+}
-+
- static void
- stop_session (gpointer user_data)
- {
-@@ -296,6 +321,9 @@ grd_vnc_server_constructed (GObject *object)
-   vnc_server->throttler = grd_throttler_new (limits,
-                                              allow_connection_cb,
-                                              vnc_server);
-+  g_signal_connect (vnc_server->throttler, "connection-timed-out",
-+                    G_CALLBACK (on_connection_timed_out),
-+                    vnc_server);
- 
-   G_OBJECT_CLASS (grd_vnc_server_parent_class)->constructed (object);
- }
--- 
-GitLab
-

diff --git a/gnome-remote-desktop.spec b/gnome-remote-desktop.spec
index 0c85806..2fdd7bd 100644
--- a/gnome-remote-desktop.spec
+++ b/gnome-remote-desktop.spec
@@ -13,7 +13,7 @@
 %global vncserver_version 0.9.11-7
 
 Name:           gnome-remote-desktop
-Version:        51.0
+Version:        51.1
 Release:        %autorelease
 Summary:        GNOME Remote Desktop screen share service
 
@@ -23,10 +23,8 @@ Source0:        https://download.gnome.org/sources/%{name}/%{gnome_major_version
 
 %gnome_check_version
 
-Patch0:         CVE-2026-96541.patch
-
 # Adds encryption support (requires patched LibVNCServer)
-Patch1:         gnutls-anontls.patch
+Patch0:         gnutls-anontls.patch
 
 BuildRequires:  asciidoc
 BuildRequires:  gcc

diff --git a/sources b/sources
index 987b5f2..43d268a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gnome-remote-desktop-51.0.tar.xz) = c1eb12180dc52d15456ea3b59a5fd7b3a862d0ed03434197b825debeed474dfa046a5ed5dca25fc0a0c15cca11d5a1febee9b0d227465103971ddc7753f485e5
+SHA512 (gnome-remote-desktop-51.1.tar.xz) = 503e7fce5181915a9aaede8161906b70b4eda374442488ab2ee8ec8136008b3a6547898a62b1c2d536ba324bf04feb1786db06be55c47c164c95332a7136ace1

                 reply	other threads:[~2026-11-25 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179560773502.1.5053026621717593763.rpms-gnome-remote-desktop-e407a806ae33@fedoraproject.org \
    --to=felipeborges@gnome.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox