From 7bd1e8d41d93bec4616daa2b7d638e0442fe8447 Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Tue, 7 Feb 2023 10:17:26 +0100 Subject: [PATCH] pam-redhat: Remove pam_console from service files pam_console is being removed as it was replaced by ConsoleKit. The changes in this commit just remove pam_console from the service files. If you are curious about the removal check the Fedora System-Wide Change proposal linked below. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1822228 Relates: https://fedoraproject.org/wiki/Changes/RemovePamConsole Relates: https://bugzilla.redhat.com/show_bug.cgi?id=2166692 Signed-off-by: Iker Pedrosa --- ...emove-pam_console-from-service-files.patch | 74 +++++++++++++++++++ gdm.spec | 8 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 0001-pam-redhat-Remove-pam_console-from-service-files.patch diff --git a/0001-pam-redhat-Remove-pam_console-from-service-files.patch b/0001-pam-redhat-Remove-pam_console-from-service-files.patch new file mode 100644 index 0000000..05b87da --- /dev/null +++ b/0001-pam-redhat-Remove-pam_console-from-service-files.patch @@ -0,0 +1,74 @@ +From cb060ca0b0feaf9f2e4679482d64107f11b411d3 Mon Sep 17 00:00:00 2001 +From: Iker Pedrosa +Date: Mon, 6 Feb 2023 12:52:27 +0100 +Subject: [PATCH] pam-redhat: Remove pam_console from service files + +pam_console is being removed as it was replaced by ConsoleKit. The +changes in this commit just remove pam_console from the service files. + +If you are curious about the removal check the Fedora System-Wide Change +proposal linked below. + +Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1822228 +Relates: https://fedoraproject.org/wiki/Changes/RemovePamConsole +Relates: https://bugzilla.redhat.com/show_bug.cgi?id=2166692 + +Signed-off-by: Iker Pedrosa +--- + data/pam-redhat/gdm-autologin.pam | 1 - + data/pam-redhat/gdm-fingerprint.pam | 1 - + data/pam-redhat/gdm-password.pam | 1 - + data/pam-redhat/gdm-smartcard.pam | 1 - + 4 files changed, 4 deletions(-) + +diff --git a/data/pam-redhat/gdm-autologin.pam b/data/pam-redhat/gdm-autologin.pam +index c31ff27a8..97a4a137a 100644 +--- a/data/pam-redhat/gdm-autologin.pam ++++ b/data/pam-redhat/gdm-autologin.pam +@@ -7,7 +7,6 @@ account include system-auth + password include system-auth + session required pam_selinux.so close + session required pam_loginuid.so +-session optional pam_console.so + session required pam_selinux.so open + session optional pam_keyinit.so force revoke + session required pam_namespace.so +diff --git a/data/pam-redhat/gdm-fingerprint.pam b/data/pam-redhat/gdm-fingerprint.pam +index 1483cdfff..628568ec3 100644 +--- a/data/pam-redhat/gdm-fingerprint.pam ++++ b/data/pam-redhat/gdm-fingerprint.pam +@@ -8,7 +8,6 @@ password include fingerprint-auth + + session required pam_selinux.so close + session required pam_loginuid.so +-session optional pam_console.so + session required pam_selinux.so open + session optional pam_keyinit.so force revoke + session required pam_namespace.so +diff --git a/data/pam-redhat/gdm-password.pam b/data/pam-redhat/gdm-password.pam +index 21c04ec1b..c75da0077 100644 +--- a/data/pam-redhat/gdm-password.pam ++++ b/data/pam-redhat/gdm-password.pam +@@ -11,7 +11,6 @@ password substack password-auth + + session required pam_selinux.so close + session required pam_loginuid.so +-session optional pam_console.so + session required pam_selinux.so open + session optional pam_keyinit.so force revoke + session required pam_namespace.so +diff --git a/data/pam-redhat/gdm-smartcard.pam b/data/pam-redhat/gdm-smartcard.pam +index 5024e52b6..3264a71cf 100644 +--- a/data/pam-redhat/gdm-smartcard.pam ++++ b/data/pam-redhat/gdm-smartcard.pam +@@ -8,7 +8,6 @@ password include smartcard-auth + + session required pam_selinux.so close + session required pam_loginuid.so +-session optional pam_console.so + session required pam_selinux.so open + session optional pam_keyinit.so force revoke + session required pam_namespace.so +-- +2.39.1 + diff --git a/gdm.spec b/gdm.spec index cce63ba..d46ffde 100644 --- a/gdm.spec +++ b/gdm.spec @@ -11,7 +11,7 @@ Name: gdm Epoch: 1 Version: 43.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: The GNOME Display Manager License: GPLv2+ @@ -24,6 +24,9 @@ Source5: default.pa-for-gdm Source6: gdm.sysusers +# pam_console removal +Patch10001: 0001-pam-redhat-Remove-pam_console-from-service-files.patch + # Downstream patches Patch70001: 0001-udev-Stick-with-wayland-on-hybrid-nvidia-with-vendor.patch Patch80001: 0001-Honor-initial-setup-being-disabled-by-distro-install.patch @@ -301,6 +304,9 @@ fi %{_libdir}/pkgconfig/gdm-pam-extensions.pc %changelog +* Thu Feb 09 2023 Iker Pedrosa - 1:43.0-5 +- Remove pam_console from service file (#1822228) + * Thu Jan 19 2023 Fedora Release Engineering - 1:43.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild