From ca4ef6e30c444438d8465aab957cb1feb2d04be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Wed, 6 Mar 2024 10:18:42 +0100 Subject: [PATCH] runtime-cleanup: Do not purge pam binaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to migrate from X.Org to Wayland [1], GNOME Kiosk needs to be run in a new PAM session. After an update in systemd, the session is failing to start because the PAM binaries are not found with the following error: Starting user@0.service - User Manager for UID 0... pam_unix(systemd-user:account): helper binary execve failed: No such file or directory pam_unix(systemd-user:account): helper binary execve failed: No such file or directory PAM failed: Authentication service cannot retrieve authentication info user@0.service: Failed to set up PAM session: Operation not permitted Do not remove the PAM binaries in /usr/sbin to avoid this issue. [1] https://github.com/rhinstaller/anaconda/pull/5485 Signed-off-by: José Expósito --- share/templates.d/99-generic/runtime-cleanup.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl index 236a4d7c4..95e7a0f99 100644 --- a/share/templates.d/99-generic/runtime-cleanup.tmpl +++ b/share/templates.d/99-generic/runtime-cleanup.tmpl @@ -293,7 +293,7 @@ removefrom openssh /usr/libexec/* removefrom openssh-clients /etc/ssh/* /usr/bin/ssh-* removefrom openssh-clients /usr/libexec/* removefrom openssh-server /etc/ssh/* /usr/libexec/openssh/sftp-server -removefrom pam /usr/sbin/* /usr/share/locale/* +removefrom pam /usr/share/locale/* removefrom policycoreutils /etc/* /usr/bin/* /usr/share/locale/* removefrom polkit /usr/bin/* removefrom popt /usr/share/locale/*