diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-01-06 16:32:55 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-01-14 11:25:03 +0100 |
commit | 5e532ad5c1326c68caa4914c43663677dabf03b3 (patch) | |
tree | f5cc7c1a586e40d1a0e6c9b079a6547e631af09d /contrib | |
parent | 41e6ed6f953a775c43a6c1c83a66ebf5f6529f22 (diff) | |
download | sssd-5e532ad5c1326c68caa4914c43663677dabf03b3.tar.gz sssd-5e532ad5c1326c68caa4914c43663677dabf03b3.tar.xz sssd-5e532ad5c1326c68caa4914c43663677dabf03b3.zip |
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
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/sssd.spec.in | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 9855e11a8..13ea53204 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 |