Browse Source
system/lightdm: Add pam rules for fscrypt.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/333/head
Isaac Yu
2 weeks ago
committed by
Willy Sudiarto Raharjo
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with
11 additions and
0 deletions
-
system/lightdm/README
-
system/lightdm/lightdm.SlackBuild
|
|
@ -14,3 +14,8 @@ Then, edit /etc/rc.d/rc.4 and add the following section: |
|
|
|
if [ -x /usr/bin/lightdm ]; then |
|
|
|
exec /usr/bin/lightdm |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
To enable automatic unlocking of password-protected directories upon |
|
|
|
login, pass FSCRYPT=yes to the SlackBuild. |
|
|
|
This is useful (ex. when encrypting the /home directory with fscrypt). |
|
|
@ -142,6 +142,12 @@ rm -rf $PKG/etc/apparmor.d |
|
|
|
# PAM |
|
|
|
cp $CWD/pam.d/* $PKG/etc/pam.d/ |
|
|
|
|
|
|
|
# If FSCRYPT=yes is passed, add these PAM rules (to automatically unlock password-protected directories upon login) |
|
|
|
if [ ${FSCRYPT:no} = yes ]; then |
|
|
|
sed -i '/-auth optional pam_kwallet5.so/a-auth optional pam_fscrypt.so' $PKG/etc/pam.d/lightdm |
|
|
|
sed -i '/-session optional pam_ck_connector.so nox11/a-session optional pam_fscrypt.so' $PKG/etc/pam.d/lightdm |
|
|
|
fi |
|
|
|
|
|
|
|
# PolicyKit |
|
|
|
mkdir -p -m700 $PKG/usr/share/polkit-1/rules.d |
|
|
|
chown polkitd $PKG/usr/share/polkit-1/rules.d |
|
|
|