From e04c224a770f665d663841fe581b47fbae2f75c0 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 10 Jan 2019 19:18:26 +0100 Subject: [PATCH] polkit: Update `/etc/pam.d/polkit-1` for Linux PAM support [1]: http://www.linuxfromscratch.org/blfs/view/systemd/postlfs/polkit.html --- polkit.be0 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/polkit.be0 b/polkit.be0 index 9a7ac18d8..d7997012e 100755 --- a/polkit.be0 +++ b/polkit.be0 @@ -70,6 +70,22 @@ mee_configure() { mee_install_post() { rm -v ${D}/etc/polkit-1/rules.d/50-default.rules + + # If you have built Polkit with Linux PAM support, you need to modify the + # default PAM configuration file which was installed by default to get + # Polkit to work correctly with BLFS. Issue the following commands as the + # root user to create the configuration file for Linux PAM: + + start_cmd cat > /etc/pam.d/polkit-1 << "EOF" + # Begin /etc/pam.d/polkit-1 + + auth include system-auth + account include system-account + password include system-password + session include system-session + + # End /etc/pam.d/polkit-1 + EOF } ###############################################################################