Public bug reported:

After the security update of gdm3 from 51.0-0ubuntu1.1 to 51.0-0ubuntu1.2,
GNOME Remote Login (system-level RDP, gnome-remote-desktop-daemon --system)
no longer works. The RDP client is disconnected during connection setup.

System
- Ubuntu 26.10 (stonking), amd64
- gdm3 51.0-0ubuntu1.2 (from stonking-security, installed by
  unattended-upgrades on 2026-12-04)
- gnome-remote-desktop 51.0-0ubuntu1 (no newer version available)

Steps to reproduce
1. Enable Remote Login in Settings > System > Remote Desktop.
2. Install gdm3 51.0-0ubuntu1.2 and reboot.
3. Connect with an RDP client (Windows mstsc) to port 3389.

Expected result
The GDM login screen is shown in the RDP session, as with gdm3 51.0-0ubuntu1.1.

Actual result
The connection is aborted. Windows mstsc reports error code 0x3, extended
error code 0x409. The gnome-remote-desktop journal shows:

  [DaemonSystem] Error while calling CreateRemoteDisplay on DisplayMananger:
  GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._gdm_5fdisplay_5ferror.Code0:
  Not authorized for action
  org.gnome.displaymanager.displayfactory.manage-user-displays
  [DaemonSystem] Aborting handover, removing remote client with remote id ...
  [ERROR][com.freerdp.core.peer] - [rdp_set_error_info]:
  ERRINFO_CB_CONNECTION_CANCELLED [0x00010409]

Analysis
The polkit action org.gnome.displaymanager.displayfactory.manage-user-displays
defaults to auth_admin. /usr/share/polkit-1/rules.d/20-gdm.rules grants it
only to subjects in group "gdm" whose system unit matches
gnome-headless-session@<user>.service.

The Remote Login daemon runs as user gnome-remote-desktop
(groups: gnome-remote-desktop only) in gnome-remote-desktop.service, so it
is not covered by that rule and its CreateRemoteDisplay call is denied.
No rule shipped by gdm3 or gnome-remote-desktop grants this action to the
gnome-remote-desktop service.

This appears to be related to the authorization check added to
CreateRemoteDisplay in this security update.

Workaround
Adding the following local rule as
/etc/polkit-1/rules.d/49-grd-remote-login.rules and restarting polkit and
gnome-remote-desktop.service restores Remote Login:

  polkit.addRule(function(action, subject) {
      if (action.id == 
"org.gnome.displaymanager.displayfactory.manage-user-displays" &&
          subject.user == "gnome-remote-desktop" &&
          subject.system_unit == "gnome-remote-desktop.service") {
          return polkit.Result.YES;
      }
  });

** Affects: gdm3 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: gnome-remote-desktop (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: gnome-remote-desktop (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2190901

Title:
  gdm3 51.0-0ubuntu1.2 breaks Remote Login (RDP): gnome-remote-desktop
  "Not authorized for action
  org.gnome.displaymanager.displayfactory.manage-user-displays"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2190901/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to