2022-12-22 00:28:35 +01:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2022-12-22 00:09:20.375896408 +0100
|
|
|
|
References: https://bugzilla.suse.com/show_bug.cgi?id=1206592
|
|
|
|
|
|
|
|
The theory for this sssd crash is that during rpm upgrading it,
|
|
|
|
sssd-2.8.2 gets installed, %post runs to restart it, but oh no,
|
|
|
|
sssd-ldap-2.7.4 is still in the system. sssd_be(-2.8.2) then falls
|
|
|
|
over its feet when it loads 2.7.4 .so files. Addin symvers like below
|
|
|
|
should prevent this and pin the modules to another: sssd_be's attempt
|
|
|
|
to dlopen libsss_ldap.so(-2.7.4) will fail because
|
|
|
|
libsss_ldap.so(-2.7.4) cannot find a libsss_util.so(-2.7.4), since
|
|
|
|
the system only has libsss_util.so(-2.8.2) at this point.
|
|
|
|
|
|
|
|
---
|
|
|
|
Makefile.am | 47 ++++++++++++++++++++++++++++++++---------------
|
|
|
|
1 file changed, 32 insertions(+), 15 deletions(-)
|
|
|
|
|
2023-09-07 14:13:07 +02:00
|
|
|
Index: sssd-2.9.2/Makefile.am
|
2022-12-22 00:28:35 +01:00
|
|
|
===================================================================
|
2023-09-07 14:13:07 +02:00
|
|
|
--- sssd-2.9.2.orig/Makefile.am
|
|
|
|
+++ sssd-2.9.2/Makefile.am
|
|
|
|
@@ -955,7 +955,11 @@ libsss_debug_la_SOURCES = \
|
2022-12-22 00:28:35 +01:00
|
|
|
libsss_debug_la_LIBADD = \
|
|
|
|
$(SYSLOG_LIBS)
|
|
|
|
libsss_debug_la_LDFLAGS = \
|
|
|
|
- -avoid-version
|
|
|
|
+ -avoid-version ${symv}
|
|
|
|
+EXTRA_libsss_debug_la_DEPENDENCIES = x.sym
|
|
|
|
+symv = -Wl,--version-script=${builddir}/x.sym
|
|
|
|
+x.sym: ${top_builddir}/config.status
|
|
|
|
+ echo "V_${PACKAGE_VERSION} { global: *; };" >$@
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_child.la
|
|
|
|
libsss_child_la_SOURCES = src/util/child_common.c
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -965,7 +969,8 @@ libsss_child_la_LIBADD = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(DHASH_LIBS) \
|
|
|
|
libsss_debug.la \
|
|
|
|
$(NULL)
|
|
|
|
-libsss_child_la_LDFLAGS = -avoid-version
|
|
|
|
+libsss_child_la_LDFLAGS = -avoid-version ${symv}
|
|
|
|
+EXTRA_libsss_child_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_crypt.la
|
|
|
|
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1004,7 +1009,8 @@ libsss_crypt_la_LIBADD = \
|
2022-12-22 00:28:35 +01:00
|
|
|
libsss_debug.la \
|
|
|
|
$(NULL)
|
|
|
|
libsss_crypt_la_LDFLAGS = \
|
|
|
|
- -avoid-version
|
|
|
|
+ -avoid-version ${symv}
|
|
|
|
+EXTRA_libsss_crypt_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_cert.la
|
|
|
|
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1029,8 +1035,9 @@ libsss_cert_la_LIBADD = \
|
2022-12-22 00:28:35 +01:00
|
|
|
libsss_debug.la \
|
|
|
|
$(NULL)
|
|
|
|
libsss_cert_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libsss_cert_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
generate-sbus-code:
|
|
|
|
$(builddir)/sbus_generate.sh $(abs_srcdir)
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1131,8 +1138,9 @@ libsss_sbus_la_CFLAGS = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
libsss_sbus_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libsss_sbus_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_sbus_sync.la
|
|
|
|
libsss_sbus_sync_la_SOURCES = \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1167,8 +1175,9 @@ libsss_sbus_sync_la_CFLAGS = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(UNICODE_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
libsss_sbus_sync_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libsss_sbus_sync_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_iface.la
|
|
|
|
libsss_iface_la_SOURCES = \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1197,8 +1206,9 @@ libsss_iface_la_CFLAGS = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
libsss_iface_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libsss_iface_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_iface_sync.la
|
|
|
|
libsss_iface_sync_la_SOURCES = \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1225,8 +1235,9 @@ libsss_iface_sync_la_CFLAGS = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
libsss_iface_sync_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libsss_iface_sync_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_util.la
|
|
|
|
libsss_util_la_SOURCES = \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1322,7 +1333,8 @@ endif
|
|
|
|
if BUILD_PASSKEY
|
2023-05-05 14:12:31 +02:00
|
|
|
libsss_util_la_SOURCES += src/db/sysdb_passkey_user_verification.c
|
2023-09-07 14:13:07 +02:00
|
|
|
endif # BUILD_PASSKEY
|
2022-12-22 00:28:35 +01:00
|
|
|
-libsss_util_la_LDFLAGS = -avoid-version
|
|
|
|
+libsss_util_la_LDFLAGS = -avoid-version ${symv}
|
|
|
|
+EXTRA_libsss_util_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libsss_semanage.la
|
|
|
|
libsss_semanage_la_CFLAGS = \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1341,7 +1353,8 @@ libsss_semanage_la_LIBADD += $(SEMANAGE_
|
2022-12-22 00:28:35 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
libsss_semanage_la_LDFLAGS = \
|
|
|
|
- -avoid-version
|
|
|
|
+ -avoid-version ${symv}
|
|
|
|
+EXTRA_libsss_semanage_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
SSSD_INTERNAL_LTLIBS = \
|
|
|
|
libsss_util.la \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1357,7 +1370,7 @@ lib_LTLIBRARIES = libipa_hbac.la \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
pkgconfig_DATA += src/lib/ipa_hbac/ipa_hbac.pc
|
|
|
|
-libipa_hbac_la_DEPENDENCIES = src/lib/ipa_hbac/ipa_hbac.exports
|
|
|
|
+EXTRA_libipa_hbac_la_DEPENDENCIES = src/lib/ipa_hbac/ipa_hbac.exports
|
|
|
|
libipa_hbac_la_SOURCES = \
|
|
|
|
src/lib/ipa_hbac/hbac_evaluator.c \
|
|
|
|
src/util/sss_utf8.c
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1688,8 +1701,9 @@ libifp_iface_la_CFLAGS = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
libifp_iface_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libifp_iface_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
pkglib_LTLIBRARIES += libifp_iface_sync.la
|
|
|
|
libifp_iface_sync_la_SOURCES = \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -1714,8 +1728,9 @@ libifp_iface_sync_la_CFLAGS = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
libifp_iface_sync_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libifp_iface_sync_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
sssd_ifp_SOURCES = \
|
|
|
|
src/responder/ifp/ifpsrv.c \
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -4314,8 +4329,9 @@ libsss_ldap_common_la_LIBADD = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(SSSD_INTERNAL_LTLIBS) \
|
|
|
|
$(NULL)
|
|
|
|
libsss_ldap_common_la_LDFLAGS = \
|
|
|
|
- -avoid-version \
|
|
|
|
+ -avoid-version ${symv} \
|
|
|
|
$(NULL)
|
|
|
|
+EXTRA_libsss_ldap_common_la_DEPENDENCIES = x.sym
|
|
|
|
if BUILD_SYSTEMTAP
|
|
|
|
libsss_ldap_common_la_LIBADD += stap_generated_probes.lo
|
|
|
|
endif
|
2023-09-07 14:13:07 +02:00
|
|
|
@@ -4372,7 +4388,8 @@ libsss_krb5_common_la_LIBADD = \
|
2022-12-22 00:28:35 +01:00
|
|
|
$(SSSD_INTERNAL_LTLIBS) \
|
|
|
|
$(NULL)
|
|
|
|
libsss_krb5_common_la_LDFLAGS = \
|
|
|
|
- -avoid-version
|
|
|
|
+ -avoid-version ${symv}
|
|
|
|
+EXTRA_libsss_krb5_common_la_DEPENDENCIES = x.sym
|
|
|
|
|
|
|
|
libsss_ldap_la_SOURCES = \
|
|
|
|
src/providers/ldap/ldap_init.c \
|