Skip to content

Commit

Permalink
polkit: Update /etc/pam.d/polkit-1 for Linux PAM support
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenzel committed Jan 10, 2019
1 parent a87fc33 commit e04c224
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions polkit.be0
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

###############################################################################
Expand Down

0 comments on commit e04c224

Please sign in to comment.