Update pam configuration
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: lightdm
|
name: lightdm
|
||||||
description: A lightweight display manager
|
description: A lightweight display manager
|
||||||
version: 1.32.0
|
version: 1.32.0
|
||||||
revision: 3
|
revision: 4
|
||||||
url: https://github.com/canonical/lightdm
|
url: https://github.com/canonical/lightdm
|
||||||
license: GPL-3.0-or-later AND (LGPL-2.0-only OR LGPL-3.0-only)
|
license: GPL-3.0-or-later AND (LGPL-2.0-only OR LGPL-3.0-only)
|
||||||
maintainers:
|
maintainers:
|
||||||
@@ -25,6 +25,7 @@ optional_depends:
|
|||||||
- accountsservice:For enhanced user accounts handling
|
- accountsservice:For enhanced user accounts handling
|
||||||
- lightdm-gtk-greeter:For the GTK greeter
|
- lightdm-gtk-greeter:For the GTK greeter
|
||||||
make_depends:
|
make_depends:
|
||||||
|
- elogind
|
||||||
- gobject-introspection
|
- gobject-introspection
|
||||||
- gtk-doc
|
- gtk-doc
|
||||||
- intltool
|
- intltool
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
#%PAM-1.0
|
auth requisite pam_nologin.so
|
||||||
auth required pam_env.so
|
auth required pam_env.so
|
||||||
auth required pam_faillock.so preauth
|
|
||||||
auth required pam_shells.so
|
auth required pam_succeed_if.so uid >= 1000 quiet
|
||||||
auth required pam_nologin.so
|
auth required pam_permit.so
|
||||||
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin
|
|
||||||
auth required pam_unix.so
|
account include system-account
|
||||||
auth required pam_permit.so
|
|
||||||
-auth optional pam_gnome_keyring.so
|
password required pam_deny.so
|
||||||
-auth optional pam_kwallet5.so
|
|
||||||
account include system-local-login
|
session required pam_limits.so
|
||||||
password include system-local-login
|
session include system-session
|
||||||
session include system-local-login
|
|
||||||
-session optional pam_gnome_keyring.so auto_start
|
|
||||||
-session optional pam_kwallet5.so auto_start
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
auth required pam_env.so
|
||||||
|
auth required pam_permit.so
|
||||||
|
|
||||||
|
account required pam_permit.so
|
||||||
|
password required pam_deny.so
|
||||||
|
session required pam_unix.so
|
||||||
|
-session optional pam_elogind.so
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
auth requisite pam_nologin.so
|
||||||
|
auth required pam_env.so
|
||||||
|
|
||||||
|
auth required pam_succeed_if.so uid >= 1000 quiet
|
||||||
|
auth include system-auth
|
||||||
|
|
||||||
|
account include system-account
|
||||||
|
password include system-password
|
||||||
|
|
||||||
|
session required pam_limits.so
|
||||||
|
session include system-session
|
||||||
@@ -31,8 +31,10 @@ package() {
|
|||||||
# Install sysusers file
|
# Install sysusers file
|
||||||
install -Dm644 "$BPM_WORKDIR"/sysusers "$BPM_OUTPUT"/usr/lib/sysusers.d/lightdm.conf
|
install -Dm644 "$BPM_WORKDIR"/sysusers "$BPM_OUTPUT"/usr/lib/sysusers.d/lightdm.conf
|
||||||
|
|
||||||
# Install autologin pam file
|
# Install pam files
|
||||||
install -Dm644 "$BPM_WORKDIR"/lightdm-autologin.pam "$BPM_WORKDIR"/etc/pam.d/lightdm-autologin
|
install -Dm644 "$BPM_WORKDIR"/lightdm.pam "$BPM_OUTPUT"/etc/pam.d/lightdm
|
||||||
|
install -Dm644 "$BPM_WORKDIR"/lightdm-autologin.pam "$BPM_OUTPUT"/etc/pam.d/lightdm-autologin
|
||||||
|
install -Dm644 "$BPM_WORKDIR"/lightdm-greeter.pam "$BPM_OUTPUT"/etc/pam.d/lightdm-greeter
|
||||||
|
|
||||||
# Install polkit rules
|
# Install polkit rules
|
||||||
install -Dm644 "$BPM_WORKDIR"/polkit-rules "$BPM_OUTPUT"/usr/share/polkit-1/rules.d/lightdm.rules
|
install -Dm644 "$BPM_WORKDIR"/polkit-rules "$BPM_OUTPUT"/usr/share/polkit-1/rules.d/lightdm.rules
|
||||||
|
|||||||
Reference in New Issue
Block a user