Skip to content

Commit

Permalink
runtime-cleanup: Do not purge pam binaries
Browse files Browse the repository at this point in the history
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 [email protected] - 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
    [email protected]: Failed to set up PAM session: Operation not permitted

Do not remove the PAM binaries in /usr/sbin to avoid this issue.

[1] rhinstaller/anaconda#5485
Signed-off-by: Martin Kolman <[email protected]>
Signed-off-by: José Expósito <[email protected]>
  • Loading branch information
M4rtinK authored and jexposit committed Mar 6, 2024
1 parent b656a59 commit 3c62d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/templates.d/99-generic/runtime-cleanup.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit 3c62d46

Please sign in to comment.