[Lunar-commits] r19490 - in moonbase/trunk/security/shadow: . pam.d

Stefan Wold ratler at lunar-linux.org
Mon Mar 27 18:46:13 UTC 2006


Author: ratler
Date: 2006-03-27 18:46:12 +0000 (Mon, 27 Mar 2006)
New Revision: 19490

Added:
   moonbase/trunk/security/shadow/PRE_BUILD
Modified:
   moonbase/trunk/security/shadow/DETAILS
   moonbase/trunk/security/shadow/pam.d/chage
   moonbase/trunk/security/shadow/pam.d/chfn
   moonbase/trunk/security/shadow/pam.d/chgpasswd
   moonbase/trunk/security/shadow/pam.d/chpasswd
   moonbase/trunk/security/shadow/pam.d/chsh
   moonbase/trunk/security/shadow/pam.d/groupadd
   moonbase/trunk/security/shadow/pam.d/groupdel
   moonbase/trunk/security/shadow/pam.d/login
   moonbase/trunk/security/shadow/pam.d/passwd
   moonbase/trunk/security/shadow/pam.d/shadow
   moonbase/trunk/security/shadow/pam.d/su
   moonbase/trunk/security/shadow/pam.d/useradd
   moonbase/trunk/security/shadow/pam.d/userdel
   moonbase/trunk/security/shadow/pam.d/usermod
Log:
All pam.d files have been reworked to remove pam_stack.so which
is deprecated. This format is not compatible with older Linux-PAM thus
I've made a check in PRE_BUILD for that.


Modified: moonbase/trunk/security/shadow/DETAILS
===================================================================
--- moonbase/trunk/security/shadow/DETAILS	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/DETAILS	2006-03-27 18:46:12 UTC (rev 19490)
@@ -15,7 +15,7 @@
         WEB_SITE=ftp://ftp.pld.org.pl/software/shadow
       MAINTAINER=ratler at lunar-linux.org
          ENTERED=20010922
-         UPDATED=20060325
+         UPDATED=20060327
            SHORT="Contains the shadow password file utilities"
 
 cat << EOF

Added: moonbase/trunk/security/shadow/PRE_BUILD
===================================================================
--- moonbase/trunk/security/shadow/PRE_BUILD	                        (rev 0)
+++ moonbase/trunk/security/shadow/PRE_BUILD	2006-03-27 18:46:12 UTC (rev 19490)
@@ -0,0 +1,13 @@
+
+# Due to major changes in pam.d files we
+# we need to be sure latest Linux-PAM is installed
+if module_installed Linux-PAM; then
+  PAMVER=`installed_version Linux-PAM | sed 's/\.//g'`
+  if [ "$PAMVER" -lt "09930" ]; then
+    message "${PROBLEM}Error:${DEFAULT_COLOR} Please update your Linux-PAM module"
+    exit 1
+  fi
+fi &&
+
+default_pre_build
+

Modified: moonbase/trunk/security/shadow/pam.d/chage
===================================================================
--- moonbase/trunk/security/shadow/pam.d/chage	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/chage	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `chage' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+password	include		system-auth
+session		include		system-auth

Modified: moonbase/trunk/security/shadow/pam.d/chfn
===================================================================
--- moonbase/trunk/security/shadow/pam.d/chfn	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/chfn	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `chfn' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+password	include		system-auth
+session		include		system-auth

Modified: moonbase/trunk/security/shadow/pam.d/chgpasswd
===================================================================
--- moonbase/trunk/security/shadow/pam.d/chgpasswd	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/chgpasswd	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `chage' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+password	include		system-auth
+session		include		system-auth

Modified: moonbase/trunk/security/shadow/pam.d/chpasswd
===================================================================
--- moonbase/trunk/security/shadow/pam.d/chpasswd	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/chpasswd	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `chage' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+password	include		system-auth
+session		include		system-auth

Modified: moonbase/trunk/security/shadow/pam.d/chsh
===================================================================
--- moonbase/trunk/security/shadow/pam.d/chsh	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/chsh	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `chsh' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+password	include		system-auth
+session		include		system-auth

Modified: moonbase/trunk/security/shadow/pam.d/groupadd
===================================================================
--- moonbase/trunk/security/shadow/pam.d/groupadd	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/groupadd	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `groupadd' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+session		include		system-auth
 password	required	pam_permit.so

Modified: moonbase/trunk/security/shadow/pam.d/groupdel
===================================================================
--- moonbase/trunk/security/shadow/pam.d/groupdel	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/groupdel	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `groupdel' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+session		include		system-auth
 password	required	pam_permit.so

Modified: moonbase/trunk/security/shadow/pam.d/login
===================================================================
--- moonbase/trunk/security/shadow/pam.d/login	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/login	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,12 +1,10 @@
-#
-# The PAM configuration file for the `login' service
-#
+#%PAM-1.0
 auth		required	pam_securetty.so
-auth		required	pam_stack.so service=system-auth
+auth		include		system-auth
 auth		required	pam_nologin.so
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+account		include		system-auth
+password	include		system-auth
+session		include		system-auth
 session		optional	pam_motd.so
 # session		optional	pam_lastlog.so
 # session		optional	pam_mail.so standard noenv

Modified: moonbase/trunk/security/shadow/pam.d/passwd
===================================================================
--- moonbase/trunk/security/shadow/pam.d/passwd	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/passwd	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,6 +1,4 @@
-#
-# The PAM configuration file for the `passwd' service
-#
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
+#%PAM-1.0
+auth		include		system-auth
+account		include		system-auth
+password	include		system-auth

Modified: moonbase/trunk/security/shadow/pam.d/shadow
===================================================================
--- moonbase/trunk/security/shadow/pam.d/shadow	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/shadow	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `shadow' service
-#
+#%PAM-1.0
 auth		sufficient 	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+session		include		system-auth
+password	include		system-auth

Modified: moonbase/trunk/security/shadow/pam.d/su
===================================================================
--- moonbase/trunk/security/shadow/pam.d/su	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/su	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,12 +1,10 @@
-#
-# The PAM configuration file for the `su' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
 # Uncomment the following row if a user is required to be in wheel group
 # auth		required	pam_wheel.so use_uid
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-password	required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+password	include		system-auth
+session		include		system-auth
 session		optional	pam_xauth.so
 

Modified: moonbase/trunk/security/shadow/pam.d/useradd
===================================================================
--- moonbase/trunk/security/shadow/pam.d/useradd	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/useradd	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `useradd' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+session		include		system-auth
 password	required	pam_permit.so

Modified: moonbase/trunk/security/shadow/pam.d/userdel
===================================================================
--- moonbase/trunk/security/shadow/pam.d/userdel	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/userdel	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,8 +1,6 @@
-#
-# The PAM configuration file for the `userdel' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+session		include		system-auth
 password	required	pam_permit.so

Modified: moonbase/trunk/security/shadow/pam.d/usermod
===================================================================
--- moonbase/trunk/security/shadow/pam.d/usermod	2006-03-27 18:41:39 UTC (rev 19489)
+++ moonbase/trunk/security/shadow/pam.d/usermod	2006-03-27 18:46:12 UTC (rev 19490)
@@ -1,9 +1,7 @@
-#
-# The PAM configuration file for the `usermod' service
-#
+#%PAM-1.0
 auth		sufficient	pam_rootok.so
-auth		required	pam_stack.so service=system-auth
-account		required	pam_stack.so service=system-auth
-session		required	pam_stack.so service=system-auth
+auth		include		system-auth
+account		include		system-auth
+session		include		system-auth
 password	required	pam_permit.so
 



More information about the Lunar-commits mailing list