rpms/nss_ldap/devel nss_ldap-264-cloexec.patch, NONE, 1.1 nss_ldap.spec, 1.115, 1.116

Nalin Dahyabhai nalin at fedoraproject.org
Tue Jul 28 15:52:25 UTC 2009


Author: nalin

Update of /cvs/pkgs/rpms/nss_ldap/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14162

Modified Files:
	nss_ldap.spec 
Added Files:
	nss_ldap-264-cloexec.patch 
Log Message:
- set close-on-exec on the dummy socket created in the child atfork() (#512856)

nss_ldap-264-cloexec.patch:
 ldap-nss.c |    1 +
 1 file changed, 1 insertion(+)

--- NEW FILE nss_ldap-264-cloexec.patch ---
diff -up nss_ldap-264/ldap-nss.c nss_ldap-264/ldap-nss.c
--- nss_ldap-264/ldap-nss.c	2009-07-23 18:55:15.290388484 -0400
+++ nss_ldap-264/ldap-nss.c	2009-07-23 19:01:33.328398737 -0400
@@ -896,6 +896,7 @@ do_drop_connection(int sd, int closeSd)
         /* we must let dup2 close sd for us to avoid race conditions
          * in multithreaded code.
          */
+	fcntl (dummyfd, F_SETFD, 1L);
 	do_dupfd (dummyfd, sd);
 	do_closefd (dummyfd);
       }


Index: nss_ldap.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nss_ldap/devel/nss_ldap.spec,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -p -r1.115 -r1.116
--- nss_ldap.spec	25 Jul 2009 19:36:45 -0000	1.115
+++ nss_ldap.spec	28 Jul 2009 15:52:25 -0000	1.116
@@ -2,7 +2,7 @@
 Summary: NSS library and PAM module for LDAP
 Name: nss_ldap
 Version: 264
-Release: 6%{?dist}
+Release: 7%{?dist}
 Source0: ftp://ftp.padl.com/pub/nss_ldap-%{version}.tar.gz
 Source1: ftp://ftp.padl.com/pub/pam_ldap-%{pam_ldap_version}.tar.gz
 Source3: nss_ldap.versions
@@ -27,6 +27,7 @@ Patch20: pam_ldap-184-nsrole.patch
 Patch21: nss_ldap-264-checkcase.patch
 Patch22: nss_ldap-264-ent_internal.patch
 Patch23: pam_ldap-183-releaseconfig.patch
+Patch24: nss_ldap-264-cloexec.patch
 
 URL: http://www.padl.com/
 License: LGPLv2+
@@ -68,6 +69,7 @@ pushd nss_ldap-%{version}
 %patch17 -p1 -b .res_init
 #%patch21 -p1 -b .checkcase
 %patch22 -p1 -b .ent_internal
+%patch24 -p1 -b .cloexec
 autoreconf -f -i
 popd
 
@@ -196,6 +198,9 @@ fi
 %doc pam_ldap-%{pam_ldap_version}/ns-pwd-policy.schema
 
 %changelog
+* Tue Jul 28 2009 Nalin Dahyabhai <nalin at redhat.com> 264-7
+- set close-on-exec on the dummy socket created in the child atfork() (#512856)
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 264-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list