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 <ipedrosa@redhat.com>
This commit is contained in:
Iker Pedrosa 2023-02-07 10:17:26 +01:00
parent 32d7e67d6d
commit 7bd1e8d41d
2 changed files with 81 additions and 1 deletions

View File

@ -0,0 +1,74 @@
From cb060ca0b0feaf9f2e4679482d64107f11b411d3 Mon Sep 17 00:00:00 2001
From: Iker Pedrosa <ipedrosa@redhat.com>
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 <ipedrosa@redhat.com>
---
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

View File

@ -11,7 +11,7 @@
Name: gdm Name: gdm
Epoch: 1 Epoch: 1
Version: 43.0 Version: 43.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: The GNOME Display Manager Summary: The GNOME Display Manager
License: GPLv2+ License: GPLv2+
@ -24,6 +24,9 @@ Source5: default.pa-for-gdm
Source6: gdm.sysusers Source6: gdm.sysusers
# pam_console removal
Patch10001: 0001-pam-redhat-Remove-pam_console-from-service-files.patch
# Downstream patches # Downstream patches
Patch70001: 0001-udev-Stick-with-wayland-on-hybrid-nvidia-with-vendor.patch Patch70001: 0001-udev-Stick-with-wayland-on-hybrid-nvidia-with-vendor.patch
Patch80001: 0001-Honor-initial-setup-being-disabled-by-distro-install.patch Patch80001: 0001-Honor-initial-setup-being-disabled-by-distro-install.patch
@ -301,6 +304,9 @@ fi
%{_libdir}/pkgconfig/gdm-pam-extensions.pc %{_libdir}/pkgconfig/gdm-pam-extensions.pc
%changelog %changelog
* Thu Feb 09 2023 Iker Pedrosa <ipedrosa@redhat.com> - 1:43.0-5
- Remove pam_console from service file (#1822228)
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:43.0-4 * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:43.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild