Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lightdm for openSUSE:Factory checked 
in at 2026-11-01 22:21:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lightdm (Old)
 and      /work/SRC/openSUSE:Factory/.lightdm.new.1255 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lightdm"

Sun Nov  1 22:21:33 2026 rev:120 rq:1394069 version:1.33.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/lightdm/lightdm.changes  2026-09-23 
14:35:03.748617691 +0200
+++ /work/SRC/openSUSE:Factory/.lightdm.new.1255/lightdm.changes        
2026-11-01 22:21:50.360070999 +0100
@@ -1,0 +2,7 @@
+Thu Oct 15 19:00:00 UTC 2026 - Sander van Dragt <[email protected]>
+
+- Add lightdm-wayland-session-tty.patch from upstream PR#483
+- Fix greeter not starting with SELinux enforcing (gh#canonical/lightdm#480)
+(AI-assisted)
+
+-------------------------------------------------------------------

New:
----
  lightdm-wayland-session-tty.patch

----------(New B)----------
  New:
- Add lightdm-wayland-session-tty.patch from upstream PR#483
- Fix greeter not starting with SELinux enforcing (gh#canonical/lightdm#480)
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lightdm.spec ++++++
--- /var/tmp/diff_new_pack.rEg2UR/_old  2026-11-01 22:21:51.484117579 +0100
+++ /var/tmp/diff_new_pack.rEg2UR/_new  2026-11-01 22:21:51.486117661 +0100
@@ -61,6 +61,8 @@
 Patch4:         lightdm-use-run-dir.patch
 # PATCH-FIX-OPENSUSE ignore-known-symlink-sessions.patch boo#1030873 -- Ignore 
known synlink sessions.
 Patch5:         lightdm-ignore-known-symlink-sessions.patch
+# PATCH-FIX-UPSTREAM lightdm-wayland-session-tty.patch 
gh#canonical/lightdm#480 gh#canonical/lightdm#483 -- Use /dev/ttyN, not 
/dev/tty/N, for Wayland sessions; pam_selinux fails on the latter and the 
greeter does not start
+Patch6:         lightdm-wayland-session-tty.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gcc

++++++ lightdm-wayland-session-tty.patch ++++++
From: Daniel Kühl <[email protected]>
Date: Thu, 24 Sep 2026 04:05:20 -0300
Subject: [PATCH] Fix tty for Wayland sessions
Upstream: https://github.com/canonical/lightdm/pull/483
References: gh#canonical/lightdm#480

Use /dev/ttyN instead of /dev/tty/N as the tty path.

Set PAM_TTY to the session tty before pam_open_session. The session can
run on a different VT than the greeter. A stale PAM_TTY makes logind
reject the session with InvalidParameter.

Fixes #480
---
diff --git a/src/session-child.c b/src/session-child.c
index 42831e2f..169691a9 100644
--- a/src/session-child.c
+++ b/src/session-child.c
@@ -479,6 +479,9 @@ session_child_run (int argc, char **argv)
         g_clear_object (&x_authority);
         x_authority = read_xauth ();
     }
+    /* The session can run on a different VT than the greeter used during 
authentication */
+    if (!xdisplay && tty)
+        pam_set_item (pam_handle, PAM_TTY, tty);
     gsize env_length;
     read_data (&env_length, sizeof (env_length));
     for (int i = 0; i < env_length; i++)
diff --git a/src/wayland-session.c b/src/wayland-session.c
index 48bcb6be..779781ee 100644
--- a/src/wayland-session.c
+++ b/src/wayland-session.c
@@ -67,7 +67,7 @@ wayland_session_connect_session (DisplayServer 
*display_server, Session *session
         session_set_env (session, "XDG_VTNR", value);
         
         g_autofree gchar *tty_text = NULL;
-        tty_text = g_strdup_printf("/dev/tty/%d",priv->vt);
+        tty_text = g_strdup_printf("/dev/tty%d",priv->vt);
         session_set_tty(session,tty_text);
     }
 }

Reply via email to