rpms/pam/devel pam-0.99.5.0-selinux-enoent.patch, NONE, 1.1 pam.spec, 1.123, 1.124 system-auth.pamd, 1.4, 1.5

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Jul 17 11:03:32 UTC 2006


Author: tmraz

Update of /cvs/dist/rpms/pam/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv29136

Modified Files:
	pam.spec system-auth.pamd 
Added Files:
	pam-0.99.5.0-selinux-enoent.patch 
Log Message:
* Mon Jul 17 2006 Tomas Mraz <tmraz at redhat.com> 0.99.5.0-3
- don't report error in pam_selinux for nonexistent tty (#188722)
- add pam_keyinit to the default system-auth file (#198623)


pam-0.99.5.0-selinux-enoent.patch:
 pam_selinux.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE pam-0.99.5.0-selinux-enoent.patch ---
--- Linux-PAM-0.99.5.0/modules/pam_selinux/pam_selinux.c.enoent	2006-06-30 12:05:15.000000000 +0200
+++ Linux-PAM-0.99.5.0/modules/pam_selinux/pam_selinux.c	2006-07-17 11:06:18.000000000 +0200
@@ -206,10 +206,11 @@
 
   if (getfilecon(ptr, &prev_context) < 0)
   {
-    pam_syslog(pamh, LOG_NOTICE,
+    if(errno != ENOENT)
+      pam_syslog(pamh, LOG_NOTICE,
 	     "Warning!  Could not get current context for %s, not relabeling: %m",
 	     ptr);
-      return NULL;
+    return NULL;
   }
   if( security_compute_relabel(usercon,prev_context,SECCLASS_CHR_FILE,
                                &newdev_context)!=0)


Index: pam.spec
===================================================================
RCS file: /cvs/dist/rpms/pam/devel/pam.spec,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- pam.spec	12 Jul 2006 07:37:04 -0000	1.123
+++ pam.spec	17 Jul 2006 11:03:29 -0000	1.124
@@ -11,7 +11,7 @@
 Summary: A security tool which provides authentication for applications
 Name: pam
 Version: 0.99.5.0
-Release: 2.1%{?dist}
+Release: 3%{?dist}
 License: GPL or BSD
 Group: System Environment/Base
 Source0: ftp.us.kernel.org:/pub/linux/libs/pam/pre/library/Linux-PAM-%{version}.tar.bz2
@@ -34,6 +34,7 @@
 Patch82: pam-0.99.3.0-tally-fail-close.patch
 Patch83: pam-0.99.4.0-succif-service.patch
 Patch84: pam-0.99.5.0-access-gai.patch
+Patch85: pam-0.99.5.0-selinux-enoent.patch
 Patch90: pam-0.99.5.0-namespace-init.patch
 
 BuildRoot: %{_tmppath}/%{name}-root
@@ -96,6 +97,7 @@
 %patch82 -p1 -b .fail-close
 %patch83 -p1 -b .service
 %patch84 -p0 -b .gai
+%patch85 -p1 -b .enoent
 %patch90 -p1 -b .namespace-init
 
 for readme in modules/pam_*/README ; do
@@ -363,6 +365,10 @@
 %{_libdir}/libpam_misc.so
 
 %changelog
+* Mon Jul 17 2006 Tomas Mraz <tmraz at redhat.com> 0.99.5.0-3
+- don't report error in pam_selinux for nonexistent tty (#188722)
+- add pam_keyinit to the default system-auth file (#198623)
+
 * Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - 0.99.5.0-2.1
 - rebuild
 


Index: system-auth.pamd
===================================================================
RCS file: /cvs/dist/rpms/pam/devel/system-auth.pamd,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- system-auth.pamd	24 Feb 2006 10:46:47 -0000	1.4
+++ system-auth.pamd	17 Jul 2006 11:03:29 -0000	1.5
@@ -11,5 +11,6 @@
 password    sufficient    pam_unix.so try_first_pass use_authtok nullok md5 shadow
 password    required      pam_deny.so
 
+session     optional      pam_keyinit.so revoke
 session     required      pam_limits.so
 session     required      pam_unix.so




More information about the fedora-cvs-commits mailing list