[packages/lightdm] add all pam.d files to pld git to be customized (pldized)

glen glen at pld-linux.org
Sun Mar 2 11:14:27 CET 2014


commit 9affbe56719bb961b6daa4e21c3d95ec7be84114
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 2 03:19:19 2014 +0200

    add all pam.d files to pld git to be customized (pldized)

 lightdm-autologin.pamd | 20 ++++++++++++++++++++
 lightdm-greeter.pamd   | 17 +++++++++++++++++
 lightdm.spec           |  4 ++++
 3 files changed, 41 insertions(+)
---
diff --git a/lightdm.spec b/lightdm.spec
index a4294fa..7bfc8d0 100644
--- a/lightdm.spec
+++ b/lightdm.spec
@@ -9,6 +9,8 @@ Group:		X11/Applications
 Source0:	https://launchpad.net/lightdm/1.7/%{version}/+download/%{name}-%{version}.tar.xz
 # Source0-md5:	73d6a917ed667a45c194df6c4f270b80
 Source1:	%{name}.pamd
+Source2:	%{name}-autologin.pamd
+Source3:	%{name}-greeter.pamd
 Patch0:		config.patch
 Patch1:		upstart-path.patch
 Patch2:		lightdm-nodaemon_option.patch
@@ -160,6 +162,8 @@ install -d $RPM_BUILD_ROOT/etc/{pam.d,security,init,dbus-1/system.d} \
 	$RPM_BUILD_ROOT/var/{log,cache}/lightdm
 
 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/lightdm
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/lightdm-autologin
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/lightdm-greeter
 touch $RPM_BUILD_ROOT/etc/security/blacklist.lightdm
 cp -p data/init/%{name}.conf $RPM_BUILD_ROOT/etc/init
 
diff --git a/lightdm-autologin.pamd b/lightdm-autologin.pamd
new file mode 100644
index 0000000..ba7a68c
--- /dev/null
+++ b/lightdm-autologin.pamd
@@ -0,0 +1,20 @@
+#%PAM-1.0
+
+# Block login if they are globally disabled
+auth      required pam_nologin.so
+
+# Load environment from /etc/environment and ~/.pam_environment
+auth      required pam_env.so
+
+# Allow access without authentication
+auth      required pam_permit.so
+
+# Stop autologin if account requires action
+account   required pam_unix.so
+
+# Can't change password
+password  required pam_deny.so
+
+# Setup session
+session   required pam_unix.so
+session   optional pam_systemd.so
diff --git a/lightdm-greeter.pamd b/lightdm-greeter.pamd
new file mode 100644
index 0000000..9a6862b
--- /dev/null
+++ b/lightdm-greeter.pamd
@@ -0,0 +1,17 @@
+#%PAM-1.0
+
+# Load environment from /etc/environment and ~/.pam_environment
+auth      required pam_env.so
+
+# Always let the greeter start without authentication
+auth      required pam_permit.so
+
+# No action required for account management
+account   required pam_permit.so
+
+# Can't change password
+password  required pam_deny.so
+
+# Setup session
+session   required pam_unix.so
+session   optional pam_systemd.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lightdm.git/commitdiff/7b654e9839d96780f17ddddb7b6fc548859a7401



More information about the pld-cvs-commit mailing list