From 32b9f09e54f71747bf7d9efc00e36df12ee0640c 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 | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 9855e11a8bb0ff3f50ceeae98f383c514011cc90..13ea532041bfd2d354a36ce2975633fbd0516363 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 @@ -715,7 +724,6 @@ rm -rf $RPM_BUILD_ROOT # 3rd party application libraries %{_libdir}/sssd/modules/libsss_autofs.so -%{_libdir}/libsss_sudo.so %{_libdir}/libnfsidmap/sss.so %{ldb_modulesdir}/memberof.so @@ -840,6 +848,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 +%{_libdir}/libsss_sudo.so* + %files tools -f sssd_tools.lang %defattr(-,root,root,-) %doc COPYING @@ -1021,6 +1034,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