rpms/sssd/F-11 sssd-0.4.1-debug_fn.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 sources, 1.9, 1.10 sssd.spec, 1.17, 1.18 0001-Use-different-attribute-for-cached-passwords-change.patch, 1.1, NONE 0001-Use-different-attribute-for-cached-passwords.patch, 1.1, NONE 0001-enable-offline-handling-for-native-LDAP-backend.patch, 1.1, NONE 0001-handle-other-pam-calls-when-offline.patch, 1.1, NONE 0001-reuse-authtok-which-is-already-in-the-pam-stack.patch, 1.2, NONE

Simo Sorce simo at fedoraproject.org
Mon Jun 8 17:41:22 UTC 2009


Author: simo

Update of /cvs/pkgs/rpms/sssd/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20453

Modified Files:
	.cvsignore sources sssd.spec 
Added Files:
	sssd-0.4.1-debug_fn.patch 
Removed Files:
	0001-Use-different-attribute-for-cached-passwords-change.patch 
	0001-Use-different-attribute-for-cached-passwords.patch 
	0001-enable-offline-handling-for-native-LDAP-backend.patch 
	0001-handle-other-pam-calls-when-offline.patch 
	0001-reuse-authtok-which-is-already-in-the-pam-stack.patch 
Log Message:
* Mon Jun  8 2009 Simo Sorce <ssorce at redhat.com> - 0.4.1-0
- latest upstream release.
- also add a patch that fixes debugging output (potential segfault)


sssd-0.4.1-debug_fn.patch:

--- NEW FILE sssd-0.4.1-debug_fn.patch ---
>From 832ef83184b1d67b7006becf149f1f8fce580ec3 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh at redhat.com>
Date: Thu, 4 Jun 2009 13:37:10 -0400
Subject: [PATCH] Fix invalid pointer error in ldb_debug_messages

---
 server/util/debug.c |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/server/util/debug.c b/server/util/debug.c
index f7f89f5..d6a98e2 100644
--- a/server/util/debug.c
+++ b/server/util/debug.c
@@ -12,9 +12,16 @@ void debug_fn(const char *format, ...)
 {
     va_list ap;
     char *s = NULL;
+    int ret;
 
     va_start(ap, format);
-    vasprintf(&s, format, ap);
+
+    ret = vasprintf(&s, format, ap);
+    if (ret < 0) {
+        /* ENOMEM */
+        return;
+    }
+
     va_end(ap);
 
     /*write(state.fd, s, strlen(s));*/
@@ -26,6 +33,9 @@ void ldb_debug_messages(void *context, enum ldb_debug_level level,
                         const char *fmt, va_list ap)
 {
     int loglevel = -1;
+    int ret;
+    char * message = NULL;
+
     switch(level) {
     case LDB_DEBUG_FATAL:
         loglevel = 0;
@@ -41,5 +51,12 @@ void ldb_debug_messages(void *context, enum ldb_debug_level level,
         break;
     }
 
-    DEBUG(loglevel, (fmt, ap));
+    ret = vasprintf(&message, fmt, ap);
+    if (ret < 0) {
+        /* ENOMEM */
+        return;
+    }
+
+    DEBUG(loglevel, (message));
+    free(message);
 }
-- 
1.6.2.2



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/sssd/F-11/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- .cvsignore	27 Apr 2009 21:39:33 -0000	1.9
+++ .cvsignore	8 Jun 2009 17:40:52 -0000	1.10
@@ -1 +1 @@
-sssd-0.3.3.tar.gz
+sssd-0.4.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/sssd/F-11/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- sources	27 Apr 2009 21:39:33 -0000	1.9
+++ sources	8 Jun 2009 17:40:52 -0000	1.10
@@ -1 +1 @@
-39c3d5096081523dd41d1e68803620ff  sssd-0.3.3.tar.gz
+b1c6c3532e5bcc22de4849e52f9bad0a  sssd-0.4.1.tar.gz


Index: sssd.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sssd/F-11/sssd.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- sssd.spec	29 Apr 2009 22:05:00 -0000	1.17
+++ sssd.spec	8 Jun 2009 17:40:52 -0000	1.18
@@ -1,27 +1,22 @@
 Name: sssd
-Version: 0.3.3
-Release: 3%{?dist}
+Version: 0.4.1
+Release: 0%{?dist}
 Group: Applications/System
 Summary: System Security Services Daemon
 
 # The entire source code is GPLv3+ except replace/ which is LGPLv3+
 License: GPLv3+ and LGPLv3+
 URL: http://fedorahosted.org/sssd
-Source: https://fedorahosted.org/sssd/attachment/wiki/WikiStart/sssd-%{version}.tar.gz
-
+Source: https://fedorahosted.org/released/sssd/sssd-%{version}.tar.gz
 Source1: sssd.conf.default
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 ### Patches ###
-Patch1: 0001-Use-different-attribute-for-cached-passwords.patch
-Patch2: 0001-Use-different-attribute-for-cached-passwords-change.patch
-Patch3: 0001-enable-offline-handling-for-native-LDAP-backend.patch
-Patch4: 0001-handle-other-pam-calls-when-offline.patch
-Patch5: 0001-reuse-authtok-which-is-already-in-the-pam-stack.patch
+Patch010: sssd-0.4.1-debug_fn.patch
 
 ### Dependencies ###
 
-Requires: libldb = 0.9.3
+Requires: libldb >= 0.9.3
 
 Requires(preun):  initscripts chkconfig
 Requires(postun): /sbin/service
@@ -31,6 +26,9 @@ Requires(postun): /sbin/service
 ### Build Dependencies ###
 
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: m4
 BuildRequires: popt-devel
 BuildRequires: libtalloc-devel
 BuildRequires: libtevent-devel
@@ -43,8 +41,9 @@ BuildRequires: pam-devel
 BuildRequires: nss-devel
 BuildRequires: nspr-devel
 BuildRequires: pcre-devel
-BuildRequires: automake
-BuildRequires: libtool
+BuildRequires: libxslt
+BuildRequires: libxml2
+BuildRequires: docbook-style-xsl
 
 %description
 Provides a set of daemons to manage access to remote directories and
@@ -56,54 +55,32 @@ services for projects like FreeIPA.
 %prep
 %setup -q
 
-%patch1 -p 1 -b .pwd-attr
-%patch2 -p 1 -b .pwd-cache-attr
-%patch3 -p 1 -b .ldap-offline
-%patch4 -p 1 -b .pam-offline
-%patch5 -p 1 -b .use_first_pass
+%patch010 -p1 -b .debug_fn
 
 %build
-
-# common
-pushd common
-autoreconf -i -f
-%configure --disable-shared \
-           --enable-static
+%configure \
+    --without-tests \
+    --without-policykit \
+    --without-infopipe \
+    --with-init-dir=%{_initrddir} \
+    --enable-nsslibdir=/%{_lib}
 
 make %{?_smp_mflags}
-popd
-
-# sssd
-pushd server
-./autogen.sh
-%configure --prefix=%{_usr} \
-           --sysconfdir=%{_sysconfdir} \
-           --without-tests     \
-           --without-policykit \
-           --without-infopipe \
-           --with-init-dir=%{_initrddir} \
-
-make %{?_smp_mflags}
-popd
-
-pushd sss_client
-./autogen.sh
-%configure --libdir=/%{_lib}
-make %{?_smp_mflags}
-popd
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-# sssd
-pushd server
 make install DESTDIR=$RPM_BUILD_ROOT
-popd
 
-pushd sss_client
-make install DESTDIR=$RPM_BUILD_ROOT
-popd
+# Remove .la files created by libtool
+rm -f \
+    $RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
+    $RPM_BUILD_ROOT/%{_lib}/security/pam_sss.la \
+    $RPM_BUILD_ROOT/%{_libdir}/ldb/memberof.la \
+    $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.la \
+    $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la
 
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd
 install -m600 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf
 
 %clean
@@ -112,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc COPYING
-%{_initrddir}/%{name}
+%attr(755,root,root) %{_initrddir}/%{name}
 %{_sbindir}/sssd
 %{_sbindir}/sss_useradd
 %{_sbindir}/sss_userdel
@@ -122,15 +99,18 @@ rm -rf $RPM_BUILD_ROOT
 %{_sbindir}/sss_groupmod
 %{_libexecdir}/%{servicename}/
 %{_libdir}/%{name}/
-%{_libdir}/ldb/memberof.so*
+%{_libdir}/ldb/memberof.so
 %dir /var/lib/sss/
 %attr(700,root,root) %dir /var/lib/sss/db
 %dir /var/lib/sss/pipes
 %attr(700,root,root) %dir /var/lib/sss/pipes/private
+%dir %{_sysconfdir}/sssd
 %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
-/%{_lib}/libnss_sss.so
 /%{_lib}/libnss_sss.so.2
 /%{_lib}/security/pam_sss.so
+%{_mandir}/man5/*
+%{_mandir}/man8/*
+%{_datadir}/locale/*/LC_MESSAGES/sss_client.mo
 
 %post
 /sbin/ldconfig
@@ -149,6 +129,10 @@ if [ $1 -ge 1 ] ; then
 fi
 
 %changelog
+* Mon Jun  8 2009 Simo Sorce <ssorce at redhat.com> - 0.4.1-0
+- latest upstream release.
+- also add a patch that fixes debugging output (potential segfault)
+
 * Tue Apr 29 2009 Simo Sorce <ssorce at redhat.com> - 0.3.3-3
 - Add use_first_pass option to fix pam stack problems
 


--- 0001-Use-different-attribute-for-cached-passwords-change.patch DELETED ---


--- 0001-Use-different-attribute-for-cached-passwords.patch DELETED ---


--- 0001-enable-offline-handling-for-native-LDAP-backend.patch DELETED ---


--- 0001-handle-other-pam-calls-when-offline.patch DELETED ---


--- 0001-reuse-authtok-which-is-already-in-the-pam-stack.patch DELETED ---




More information about the fedora-extras-commits mailing list