From d2e107c3c05dac7ecacd17b6c2ae2dbed44bfb0e Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 6 Jan 2016 16:32:55 +0100 Subject: [PATCH] SPEC: Move libsss_sudo.so outside sssd-common The module ${libdir}/libsss_sudo.so is used only by /usr/bin/sudo. If libsss_sudo.so was part of sssd-client then 32 bit version would never be used on 64 bit machine and files in sssd-client can be used by multilib applications e.g. libnss_sss.so can be indirectly "dlopened" by 64 bit applications and 32 bit application. (32-bit web browser; ordinary 64bit applications ...) Resolves: https://fedorahosted.org/sssd/ticket/2855 (cherry picked from commit 64c256abfaa4377e995eff505b0fd9f10215113e) --- contrib/sssd.spec.in | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 710ba92209d4a4d6e45b63bf7bf693fd5ec5f490..83e6be649a68e344cf7e767dbab072d4e6ca2ac2 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -180,6 +180,7 @@ License: GPLv3+ Requires: libldb >= 0.9.3 Requires: libtdb >= 1.1.3 Requires: sssd-client%{?_isa} = %{version}-%{release} +Requires: libsss_sudo = %{version}-%{release} Requires: libsss_idmap = %{version}-%{release} Conflicts: sssd < %{version}-%{release} %if (0%{?use_systemd} == 1) @@ -193,8 +194,6 @@ Requires(postun): initscripts chkconfig %endif ### Provides ### -Provides: libsss_sudo = %{version}-%{release} -Obsoletes: libsss_sudo <= 1.9.93 Provides: libsss_sudo-devel = %{version}-%{release} Obsoletes: libsss_sudo-devel <= 1.9.93 Provides: libsss_autofs = %{version}-%{release} @@ -216,6 +215,16 @@ Requires(postun): /sbin/ldconfig Provides the libraries needed by the PAM and NSS stacks to connect to the SSSD service. +%package -n libsss_sudo +Summary: A library to allow communication between SUDO and SSSD +Group: Development/Libraries +License: LGPLv3+ +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description -n libsss_sudo +A utility library to allow communication between SUDO and SSSD + %package tools Summary: Userspace tools for use with the SSSD Group: Applications/System @@ -840,6 +849,11 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/pam_sss.8* %{_mandir}/man8/sssd_krb5_locator_plugin.8* +%files -n libsss_sudo +%defattr(-,root,root,-) +%doc src/sss_client/COPYING src/sss_client/COPYING.LESSER +%{_libdir}/libsss_sudo.so* + %files tools -f sssd_tools.lang %defattr(-,root,root,-) %doc COPYING @@ -1021,6 +1035,10 @@ fi %postun client -p /sbin/ldconfig +%post -n libsss_sudo -p /sbin/ldconfig + +%postun -n libsss_sudo -p /sbin/ldconfig + %post -n libipa_hbac -p /sbin/ldconfig %postun -n libipa_hbac -p /sbin/ldconfig -- 2.5.0