[info=03cfa0ca67c32d9aa59b740572efe4b06c350b3529fdc9dd7d46e7501d8cd398]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=322
This commit is contained in:
commit
3a117daca5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
_scmsync.obsinfo
Normal file
4
_scmsync.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
mtime: 1728999204
|
||||||
|
commit: 03cfa0ca67c32d9aa59b740572efe4b06c350b3529fdc9dd7d46e7501d8cd398
|
||||||
|
url: https://src.opensuse.org/jengelh/sssd
|
||||||
|
revision: master
|
6
baselibs.conf
Normal file
6
baselibs.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
sssd
|
||||||
|
supplements "packageand(sssd:pam-<targettype>)"
|
||||||
|
supplements "packageand(sssd:glibc-<targettype>)"
|
||||||
|
-/usr/lib(64)?/*
|
||||||
|
obsoletes "sssd-common-<targettype> < <version>"
|
||||||
|
provides "sssd-common-<targettype> = <version>"
|
3
build.specials.obscpio
Normal file
3
build.specials.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7109a449ccc8eb4902df46ec34f884b03ad903a916ee172b319361ee93e47ad7
|
||||||
|
size 256
|
24
harden_sssd-ifp.service.patch
Normal file
24
harden_sssd-ifp.service.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Index: sssd-2.5.2/src/sysv/systemd/sssd-ifp.service.in
|
||||||
|
===================================================================
|
||||||
|
--- sssd-2.5.2.orig/src/sysv/systemd/sssd-ifp.service.in
|
||||||
|
+++ sssd-2.5.2/src/sysv/systemd/sssd-ifp.service.in
|
||||||
|
@@ -5,6 +5,19 @@ After=sssd.service
|
||||||
|
BindsTo=sssd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
+# added automatically, for details please see
|
||||||
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||||
|
+ProtectSystem=full
|
||||||
|
+ProtectHome=true
|
||||||
|
+PrivateDevices=true
|
||||||
|
+ProtectHostname=true
|
||||||
|
+ProtectClock=true
|
||||||
|
+ProtectKernelTunables=true
|
||||||
|
+ProtectKernelModules=true
|
||||||
|
+ProtectKernelLogs=true
|
||||||
|
+ProtectControlGroups=true
|
||||||
|
+RestrictRealtime=true
|
||||||
|
+# end of automatic additions
|
||||||
|
Environment=DEBUG_LOGGER=--logger=files
|
||||||
|
EnvironmentFile=-@environment_file@
|
||||||
|
Type=dbus
|
28
harden_sssd-kcm.service.patch
Normal file
28
harden_sssd-kcm.service.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
src/sysv/systemd/sssd-kcm.service.in | 13 +++++++++++++
|
||||||
|
1 file changed, 13 insertions(+)
|
||||||
|
|
||||||
|
Index: sssd-2.10.0/src/sysv/systemd/sssd-kcm.service.in
|
||||||
|
===================================================================
|
||||||
|
--- sssd-2.10.0.orig/src/sysv/systemd/sssd-kcm.service.in
|
||||||
|
+++ sssd-2.10.0/src/sysv/systemd/sssd-kcm.service.in
|
||||||
|
@@ -8,6 +8,19 @@ After=sssd-kcm.socket
|
||||||
|
Also=sssd-kcm.socket
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
+# added automatically, for details please see
|
||||||
|
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||||
|
+ProtectSystem=full
|
||||||
|
+ProtectHome=true
|
||||||
|
+PrivateDevices=true
|
||||||
|
+ProtectHostname=true
|
||||||
|
+ProtectClock=true
|
||||||
|
+ProtectKernelTunables=true
|
||||||
|
+ProtectKernelModules=true
|
||||||
|
+ProtectKernelLogs=true
|
||||||
|
+ProtectControlGroups=true
|
||||||
|
+RestrictRealtime=true
|
||||||
|
+# end of automatic additions
|
||||||
|
Environment=DEBUG_LOGGER=--logger=files
|
||||||
|
ExecStartPre=+-/bin/chown -f @SSSD_USER@:@SSSD_USER@ @sssdconfdir@
|
||||||
|
ExecStartPre=+-/bin/chown -f @SSSD_USER@:@SSSD_USER@ @sssdconfdir@/sssd.conf
|
20
krb-noversion.diff
Normal file
20
krb-noversion.diff
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: 2019-02-15 17:20:47.842813210 +0100
|
||||||
|
|
||||||
|
Remove versions checks that need updating every iteration.
|
||||||
|
---
|
||||||
|
src/external/pac_responder.m4 | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
Index: sssd-2.0.0/src/external/pac_responder.m4
|
||||||
|
===================================================================
|
||||||
|
--- sssd-2.0.0.orig/src/external/pac_responder.m4
|
||||||
|
+++ sssd-2.0.0/src/external/pac_responder.m4
|
||||||
|
@@ -11,6 +11,7 @@ then
|
||||||
|
AC_MSG_CHECKING(for supported MIT krb5 version)
|
||||||
|
KRB5_VERSION="`$KRB5_CONFIG --version`"
|
||||||
|
case $KRB5_VERSION in
|
||||||
|
+ *|\
|
||||||
|
Kerberos\ 5\ release\ 1.9* | \
|
||||||
|
Kerberos\ 5\ release\ 1.10* | \
|
||||||
|
Kerberos\ 5\ release\ 1.11* | \
|
BIN
sssd-2.10.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
sssd-2.10.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
16
sssd-2.10.0.tar.gz.asc
Normal file
16
sssd-2.10.0.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIzBAABCAAdFiEEwTzQf/stsUCORXo809IbKRDPZ1kFAmcOPUoACgkQ09IbKRDP
|
||||||
|
Z1myuA//anDvdZcQp0EUia2NsiWt2MFE8esmsEIN6QmEYjUxvEeXI9q4YJQimMi8
|
||||||
|
wdt0zqZE1PLrTcroWaeGcgt2+CJWUbVanZtNn3oo7lUVYrLKemrUzavM7dXTaA43
|
||||||
|
cdKAFyEO+nHJQ2yBNUt6sRXc3tM0H27yZs0iL+CcYu6YshUTbMnZuwdpz7DqDTN8
|
||||||
|
nbG+LWa+U0en5mI3waP8Ionwmdv9AJAuCHQZLlZDpM0+YfGumcIUJdbxU/I8pqP8
|
||||||
|
MQaulPv3e+BNwdbUiLlk0cXRjuEfSd0bmMa3MqB4IqMvvjACU0GuSgK3FDhutZJe
|
||||||
|
HfmzYSo/Zntmr7F/eYLz6zy/GU3VewEilOyRV08oz+EVJRbGyo2t4k6PUYbn+I4V
|
||||||
|
kJ/maed5jnBzIZGf6o+P1r+3mavJg7k2LDV4s48MsZ4Y5ED4X0c+boT1L5FZbquW
|
||||||
|
gp99Di0RG4VoWiYOfVfszLzeDWOLbOrKMyA6PTqlmjGYAdV9SBwZP5WEdwXyPovo
|
||||||
|
D7uual7Eqdd+Y/lt+8O4Wd+Y+a9xI2kwVFo8KYmHc8PhgLpPIKTWbBTEI+0nw3fJ
|
||||||
|
qqyyA7JWA81bt4WKVuJaeS87S/9F4yn8ps2dzSgHjZ2Tzr7Eu1a3RWLjKYsjKZrT
|
||||||
|
PPd2d/02rQAZPwLYHN5qM3Xjh0DD7IiXav1QuIPxmUQA9z8ZiuA=
|
||||||
|
=mJVY
|
||||||
|
-----END PGP SIGNATURE-----
|
BIN
sssd-2.9.5.tar.gz
(Stored with Git LFS)
Normal file
BIN
sssd-2.9.5.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
16
sssd-2.9.5.tar.gz.asc
Normal file
16
sssd-2.9.5.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIzBAABCAAdFiEEwTzQf/stsUCORXo809IbKRDPZ1kFAmZF8CMACgkQ09IbKRDP
|
||||||
|
Z1lSVQ/9EPVvWUX1z/pHfbvDjRpfD+LDbDceYB4YBh0caYpMVFm/2wHhFIjTYEpf
|
||||||
|
SmIR+SQp50NkRSK6tE/u+Swu+YUkiCqnEWv2y9wd4Uh2NKiukyiqBC1k2cn9URNu
|
||||||
|
oRreBM1KIRvTkdoyZwteELJ7vMLVr0UT2iIXZQFIIZX+LM3FNZJ5vFcj5fF0Hz1f
|
||||||
|
v8zR0VTB7xY/6U+4KikvMyM3fOPeTOJvEtMp4xDWyquRjCADjZasOQcKRQzXp1er
|
||||||
|
zs/qLcQ8eCODXhKelGqmppVIElW+72f1FNbMpBnlQ7VtFn6pn4sPazO0Hr7eNfZJ
|
||||||
|
Vc6GXN8zZ/oF5U4x7XSMVqeOHLQoLeb2HxgUzS+1Ig19FHOs6Xoj0dO5l/TOEFav
|
||||||
|
l61qytYnj3DNZjrMVLsMvOx3qGYK7PmyaWNoIJlLO2GbWKMP/8yBm35Ugd0jybSi
|
||||||
|
T7VWX+isQHfVhSZ9wD4/yYOBAU3lABORAjXkCWQp/vMR/KiHbfaajCAbl56KiijQ
|
||||||
|
eKYaq57EH3N+qKd1sqCrPfSw3HSqm3rngG1CsMasBQgLFs2aW+Mwo3UvQ1U/ykED
|
||||||
|
mOo2D9uhOQluv4AUSpKK6E8EXoPSxDFZI4WX37depO2VGXDO90JNfVamJXjy1+bH
|
||||||
|
d/RnoZfC7h7Vb1P1bPgGdsAFQBOP0FinbEjehpw0P0U2xAZQWek=
|
||||||
|
=pY7t
|
||||||
|
-----END PGP SIGNATURE-----
|
2133
sssd.changes
Normal file
2133
sssd.changes
Normal file
File diff suppressed because it is too large
Load Diff
75
sssd.keyring
Normal file
75
sssd.keyring
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBGI9m7YBEACjfmpZrW6wpmz+QRfnx1UuOABpTmsBi6ElTqx+ZzLU2R3N4KLl
|
||||||
|
PDycp6Pm5PqnLRLoC0TzHh1MjpVWiCfrnlTm6yD2Y6A37c6/elFjiZlbY93zUJi9
|
||||||
|
mE3OXyxe3RQHVjEYiQZ+DCcgQe5r2mFL8prK2OBIIoJJK2t46EjcjsJJkOIgT9H0
|
||||||
|
7FaLWfT2MHhO0mg6EqwqOsSKI392sVhJ0GTDULiI1ZlRULZwn3oWdXglO5O9KAhu
|
||||||
|
jSAIrKuX6QsIxXfVDG1wmOR99yyuiXpJhlKbgdw3Y37IcHRD9DLbqCnp//3WkW9W
|
||||||
|
k5Mn/bYK1TIed92U4C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aMB0NX/IksfJ9DEwMgsF0Hwlx5dmTin9ufFKfhKFcwV5aDXlEsYDMqT2o7z9
|
||||||
|
l/7UTNXnk6VG/QXFhRjBDPtQNkgZoze1VV5itGmBsVE+c9lRtr+6YPJ04CDDv9dX
|
||||||
|
DI0eGdPxVmfDTR2tHOt+LOYIw4umsID3/qQzYluoUx5Cpud45qaBRjq7/iE+KJgS
|
||||||
|
IqxgBTXkV39C8T4gXrDRRjlBsOcIc7P6yUVqyClExynQ1BAJSEueO95CtxXV2btK
|
||||||
|
xSkZ2CyhVtjRxW5TOfQdvrFPueoxC17syQTslM/mKk6DBRHJrullqPLbSieKEJyc
|
||||||
|
SMkza3BVIhi0hdPfVfBRnSYe8jRFmBIR+cXnyAOkDkPqWK7q/icGVDpJPuunteH3
|
||||||
|
1vXu/KcDrL7GVRj2LD136Xla1sgGUEbYmLfIHvYmqh1DXJQvnoAyUFKaBWEpSBg=
|
||||||
|
=E0Gq
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
903
sssd.spec
Normal file
903
sssd.spec
Normal file
@ -0,0 +1,903 @@
|
|||||||
|
#
|
||||||
|
# spec file for package sssd
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: sssd
|
||||||
|
Version: 2.10.0
|
||||||
|
Release: 0
|
||||||
|
Summary: System Security Services Daemon
|
||||||
|
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
URL: https://github.com/SSSD/sssd
|
||||||
|
#Git-Clone: https://github.com/SSSD/sssd
|
||||||
|
Source: https://github.com/SSSD/sssd/releases/download/%version/%name-%version.tar.gz
|
||||||
|
Source2: https://github.com/SSSD/sssd/releases/download/%version/%name-%version.tar.gz.asc
|
||||||
|
Source3: baselibs.conf
|
||||||
|
Source5: %name.keyring
|
||||||
|
Patch1: krb-noversion.diff
|
||||||
|
Patch2: harden_sssd-ifp.service.patch
|
||||||
|
Patch3: harden_sssd-kcm.service.patch
|
||||||
|
Patch4: symvers.patch
|
||||||
|
BuildRequires: autoconf >= 2.59
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: bind-utils
|
||||||
|
BuildRequires: check-devel
|
||||||
|
BuildRequires: cifs-utils-devel
|
||||||
|
BuildRequires: cyrus-sasl-devel
|
||||||
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
|
BuildRequires: krb5-devel >= 1.12
|
||||||
|
BuildRequires: libcmocka-devel
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
|
BuildRequires: libsubid-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: libunistring-devel
|
||||||
|
BuildRequires: libxml2-tools
|
||||||
|
BuildRequires: libxslt-tools
|
||||||
|
BuildRequires: nscd
|
||||||
|
BuildRequires: nss_wrapper
|
||||||
|
BuildRequires: openldap2-devel
|
||||||
|
BuildRequires: pam-devel
|
||||||
|
BuildRequires: pkg-config >= 0.21
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: uid_wrapper
|
||||||
|
BuildRequires: pkgconfig(augeas) >= 1.0.0
|
||||||
|
BuildRequires: pkgconfig(collection) >= 0.5.1
|
||||||
|
BuildRequires: pkgconfig(dbus-1) >= 1.0.0
|
||||||
|
BuildRequires: pkgconfig(dhash) >= 0.4.2
|
||||||
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
|
BuildRequires: pkgconfig(ini_config) >= 1.3
|
||||||
|
BuildRequires: pkgconfig(jansson)
|
||||||
|
BuildRequires: pkgconfig(ldb) >= 0.9.2
|
||||||
|
BuildRequires: pkgconfig(libcap)
|
||||||
|
BuildRequires: pkgconfig(libcares)
|
||||||
|
BuildRequires: pkgconfig(libcrypto) >= 1.0.1
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
|
BuildRequires: pkgconfig(libcurl)
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(libnfsidmap)
|
||||||
|
BuildRequires: pkgconfig(libnl-3.0) >= 3.0
|
||||||
|
BuildRequires: pkgconfig(libnl-route-3.0) >= 3.0
|
||||||
|
BuildRequires: pkgconfig(libpcre2-8)
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
|
BuildRequires: pkgconfig(libsemanage)
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(libsystemd)
|
||||||
|
BuildRequires: pkgconfig(ndr_krb5pac)
|
||||||
|
BuildRequires: pkgconfig(ndr_nbt)
|
||||||
|
BuildRequires: pkgconfig(p11-kit-1) >= 0.23.3
|
||||||
|
BuildRequires: pkgconfig(popt)
|
||||||
|
BuildRequires: pkgconfig(python3)
|
||||||
|
BuildRequires: pkgconfig(smbclient)
|
||||||
|
BuildRequires: pkgconfig(talloc)
|
||||||
|
BuildRequires: pkgconfig(tdb) >= 1.1.3
|
||||||
|
BuildRequires: pkgconfig(tevent)
|
||||||
|
BuildRequires: pkgconfig(uuid)
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
||||||
|
# samba-client-devel pulls samba-client-libs pulls libldap-2_4-2 wants libldap-data(-2.4);
|
||||||
|
# this conflicts with
|
||||||
|
# openldap2-devel pulls libldap2 wants libldap-data(-2.6)
|
||||||
|
# Package contains just config files, not needed for build.
|
||||||
|
#!BuildIgnore: libldap-data
|
||||||
|
%endif
|
||||||
|
%{?systemd_ordering}
|
||||||
|
Requires: sssd-ldap = %version-%release
|
||||||
|
Requires(postun): pam-config
|
||||||
|
Provides: libsss_sudo = %version-%release
|
||||||
|
Provides: sssd-client = %version-%release
|
||||||
|
Obsoletes: libsss_sudo < %version-%release
|
||||||
|
Provides: sssd-common = %version-%release
|
||||||
|
Obsoletes: sssd-common < %version-%release
|
||||||
|
|
||||||
|
%define servicename sssd
|
||||||
|
%define sssdstatedir %_localstatedir/lib/sss
|
||||||
|
%define dbpath %sssdstatedir/db
|
||||||
|
%define pipepath %sssdstatedir/pipes
|
||||||
|
%define pubconfpath %sssdstatedir/pubconf
|
||||||
|
%define gpocachepath %sssdstatedir/gpo_cache
|
||||||
|
%define ldbdir %(pkg-config ldb --variable=modulesdir)
|
||||||
|
|
||||||
|
# Both SSSD and cifs-utils provide an idmap plugin for cifs.ko
|
||||||
|
# %%_sysconfdir/cifs-utils/idmap-plugin should be a symlink to one of the 2 idmap plugins
|
||||||
|
# * cifs-utils one is the default (priority 20)
|
||||||
|
# * installing SSSD should NOT switch to SSSD plugin (priority 10)
|
||||||
|
%define cifs_idmap_plugin %_sysconfdir/cifs-utils/idmap-plugin
|
||||||
|
%define cifs_idmap_lib %_libdir/cifs-utils/cifs_idmap_sss.so
|
||||||
|
%define cifs_idmap_name cifs-idmap-plugin
|
||||||
|
%define cifs_idmap_priority 10
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
|
||||||
|
%description
|
||||||
|
Provides a set of daemons to manage access to remote directories and
|
||||||
|
authentication mechanisms. It provides an NSS and PAM interface toward
|
||||||
|
the system and a pluggable backend system to connect to multiple different
|
||||||
|
account sources. It is also the basis to provide client auditing and policy
|
||||||
|
services for projects like FreeIPA.
|
||||||
|
|
||||||
|
%package ad
|
||||||
|
Summary: The ActiveDirectory backend plugin for sssd
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
Requires: %name-krb5-common = %version-%release
|
||||||
|
Requires: adcli
|
||||||
|
|
||||||
|
%description ad
|
||||||
|
Provides the Active Directory back end that the SSSD can utilize to
|
||||||
|
fetch identity data from and authenticate against an Active Directory
|
||||||
|
server.
|
||||||
|
|
||||||
|
%package dbus
|
||||||
|
Summary: The D-Bus responder of sssd
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Base
|
||||||
|
Requires: %name = %version
|
||||||
|
|
||||||
|
%description dbus
|
||||||
|
Provides the D-Bus responder of sssd, called InfoPipe, which allows
|
||||||
|
information from sssd to be transmitted over the system bus.
|
||||||
|
|
||||||
|
%package ipa
|
||||||
|
Summary: FreeIPA backend plugin for sssd
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
Requires: %name = %version
|
||||||
|
Requires: %name-ad = %version-%release
|
||||||
|
Requires: %name-krb5-common = %version-%release
|
||||||
|
Obsoletes: %name-ipa-provider < %version-%release
|
||||||
|
Provides: %name-ipa-provider = %version-%release
|
||||||
|
|
||||||
|
%description ipa
|
||||||
|
Provides the IPA back end that the SSSD can utilize to fetch identity
|
||||||
|
data from and authenticate against an IPA server.
|
||||||
|
|
||||||
|
%package kcm
|
||||||
|
Summary: SSSD's Kerberos cache manager
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
Requires: sssd = %version-%release
|
||||||
|
|
||||||
|
%description kcm
|
||||||
|
KCM is a process that stores, tracks and manages Kerberos credential
|
||||||
|
caches.
|
||||||
|
|
||||||
|
%package krb5
|
||||||
|
Summary: The Kerberos authentication backend plugin for sssd
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
Requires: %name-krb5-common = %version-%release
|
||||||
|
|
||||||
|
%description krb5
|
||||||
|
Provides the Kerberos back end that the SSSD can utilize authenticate
|
||||||
|
against a Kerberos server.
|
||||||
|
|
||||||
|
%package krb5-common
|
||||||
|
Summary: SSSD helpers needed for Kerberos and GSSAPI authentication
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
Requires: cyrus-sasl-gssapi
|
||||||
|
|
||||||
|
%description krb5-common
|
||||||
|
Provides helper processes that the LDAP and Kerberos back ends can
|
||||||
|
use for Kerberos user or host authentication.
|
||||||
|
|
||||||
|
%package ldap
|
||||||
|
Summary: The LDAP backend plugin for sssd
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
Requires: %name-krb5-common = %version-%release
|
||||||
|
|
||||||
|
%description ldap
|
||||||
|
Provides the LDAP back end that the SSSD can utilize to fetch
|
||||||
|
identity data from and authenticate against an LDAP server.
|
||||||
|
|
||||||
|
%package proxy
|
||||||
|
Summary: The proxy backend plugin for sssd
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Daemons
|
||||||
|
|
||||||
|
%description proxy
|
||||||
|
Provides the proxy back end which can be used to wrap an existing NSS
|
||||||
|
and/or PAM modules to leverage SSSD caching.
|
||||||
|
|
||||||
|
%package tools
|
||||||
|
Summary: Commandline tools for sssd
|
||||||
|
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||||
|
Group: System/Management
|
||||||
|
Requires: python3-sssd-config = %version-%release
|
||||||
|
Requires: sssd = %version
|
||||||
|
|
||||||
|
%description tools
|
||||||
|
The packages contains commandline tools for managing users and groups using
|
||||||
|
the "local" id provider of the System Security Services Daemon (sssd).
|
||||||
|
|
||||||
|
%package winbind-idmap
|
||||||
|
Summary: The sss idmap backend for Winbind
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description winbind-idmap
|
||||||
|
The idmap_sss module provides a way for Winbind to call SSSD to map
|
||||||
|
UIDs/GIDs and SIDs.
|
||||||
|
|
||||||
|
%package -n libsss_certmap0
|
||||||
|
Summary: FreeIPA ID mapping library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libsss_certmap0
|
||||||
|
A utility library for FreeIPA to map certs.
|
||||||
|
|
||||||
|
%package -n libsss_certmap-devel
|
||||||
|
Summary: Development files for the FreeIPA certmap library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libsss_certmap0 = %version
|
||||||
|
|
||||||
|
%description -n libsss_certmap-devel
|
||||||
|
A utility library for FreeIPA to map certs.
|
||||||
|
|
||||||
|
%package -n libipa_hbac0
|
||||||
|
Summary: FreeIPA HBAC Evaluator library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libipa_hbac0
|
||||||
|
Utility library to validate FreeIPA HBAC rules for authorization
|
||||||
|
requests.
|
||||||
|
|
||||||
|
%package -n libipa_hbac-devel
|
||||||
|
Summary: Development files for the FreeIPA HBAC Evaluator library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libipa_hbac0 = %version
|
||||||
|
|
||||||
|
%description -n libipa_hbac-devel
|
||||||
|
Utility library to validate FreeIPA HBAC rules for authorization
|
||||||
|
requests.
|
||||||
|
|
||||||
|
%package -n libnfsidmap-sss
|
||||||
|
Summary: Library to allow communication between libnfsidmap and SSSD
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
Supplements: (nfsidmap and sssd-client)
|
||||||
|
|
||||||
|
%description -n libnfsidmap-sss
|
||||||
|
A utility library to allow communication between libnfsidmap and SSSD.
|
||||||
|
|
||||||
|
%package -n libsss_idmap0
|
||||||
|
Summary: FreeIPA ID mapping library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libsss_idmap0
|
||||||
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
||||||
|
|
||||||
|
%package -n libsss_idmap-devel
|
||||||
|
Summary: Development files for the FreeIPA idmap library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libsss_idmap0 = %version
|
||||||
|
|
||||||
|
%description -n libsss_idmap-devel
|
||||||
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
||||||
|
|
||||||
|
%package -n libsss_nss_idmap0
|
||||||
|
Summary: FreeIPA ID mapping library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libsss_nss_idmap0
|
||||||
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
||||||
|
|
||||||
|
%package -n libsss_nss_idmap-devel
|
||||||
|
Summary: Development files for the FreeIPA idmap library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libsss_nss_idmap0 = %version
|
||||||
|
|
||||||
|
%description -n libsss_nss_idmap-devel
|
||||||
|
A utility library for FreeIPA to map Windows SIDs to Unix user/group IDs.
|
||||||
|
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%package -n libsss_simpleifp0
|
||||||
|
Summary: The SSSD D-Bus responder helper library
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
# Even though sssd has obsoleted simpleifp, the plan here is to retain ABI
|
||||||
|
# compatibility with the existing SUSE 15.x product line. ...at least, until
|
||||||
|
# sssd completely removes SIFP from source.
|
||||||
|
|
||||||
|
%description -n libsss_simpleifp0
|
||||||
|
This subpackage provides a library that simplifies the D-Bus API for
|
||||||
|
the SSSD InfoPipe responder.
|
||||||
|
|
||||||
|
%package -n libsss_simpleifp-devel
|
||||||
|
Summary: Development files for the SSSD D-Bus responder helper library
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libsss_simpleifp0 = %version
|
||||||
|
|
||||||
|
%description -n libsss_simpleifp-devel
|
||||||
|
This subpackage provides the development files for sssd's simpleifp,
|
||||||
|
a library that simplifies the D-Bus API for the SSSD InfoPipe
|
||||||
|
responder.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%package -n libsss_sudo
|
||||||
|
Summary: A library to allow communication between sudo and SSSD
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: System/Libraries
|
||||||
|
Supplements: (sudo and sssd-client)
|
||||||
|
|
||||||
|
%description -n libsss_sudo
|
||||||
|
A utility library to allow communication between sudo and SSSD.
|
||||||
|
|
||||||
|
%package -n python3-ipa_hbac
|
||||||
|
Summary: Python bindings for the FreeIPA HBAC Evaluator library
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: python3
|
||||||
|
|
||||||
|
%description -n python3-ipa_hbac
|
||||||
|
The python-ipa_hbac package contains the bindings so that libipa_hbac
|
||||||
|
can be used by Python applications.
|
||||||
|
|
||||||
|
%package -n python3-sss-murmur
|
||||||
|
Summary: Python3 bindings for SSSD Murmur hash function
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: python3
|
||||||
|
|
||||||
|
%description -n python3-sss-murmur
|
||||||
|
This subpackage provides the python3 module for calculating the
|
||||||
|
Murmur hash version 3.
|
||||||
|
|
||||||
|
%package -n python3-sss_nss_idmap
|
||||||
|
Summary: Python bindings for libsss_nss_idmap
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: python3
|
||||||
|
|
||||||
|
%description -n python3-sss_nss_idmap
|
||||||
|
The libsss_nss_idmap-python contains the bindings so that
|
||||||
|
libsss_nss_idmap can be used by Python applications.
|
||||||
|
|
||||||
|
%package -n python3-sssd-config
|
||||||
|
Summary: Python API for configuring sssd
|
||||||
|
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: python3
|
||||||
|
|
||||||
|
%description -n python3-sssd-config
|
||||||
|
Provide python module to access and manage configuration of the System
|
||||||
|
Security Services Daemon (sssd).
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
# help configure find nscd
|
||||||
|
export PATH="$PATH:/usr/sbin"
|
||||||
|
|
||||||
|
autoreconf -fiv
|
||||||
|
%configure \
|
||||||
|
--with-db-path="%dbpath" \
|
||||||
|
--with-pipe-path="%pipepath" \
|
||||||
|
--with-pubconf-path="%pubconfpath" \
|
||||||
|
--with-gpo-cache-path="%gpocachepath" \
|
||||||
|
--with-environment-file="%_sysconfdir/sysconfig/sssd" \
|
||||||
|
--with-initscript=systemd \
|
||||||
|
--with-syslog=journald \
|
||||||
|
--with-pid-path="%_rundir" \
|
||||||
|
--enable-nsslibdir="/%_lib" \
|
||||||
|
--enable-pammoddir="%_pam_moduledir" \
|
||||||
|
--with-ldb-lib-dir="%ldbdir" \
|
||||||
|
--with-os=suse \
|
||||||
|
--disable-ldb-version-check \
|
||||||
|
--without-python2-bindings \
|
||||||
|
--without-oidc-child \
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
|
--with-selinux=yes \
|
||||||
|
--with-subid
|
||||||
|
%else
|
||||||
|
--with-selinux=no \
|
||||||
|
--with-libsifp \
|
||||||
|
--with-files-provider
|
||||||
|
%endif
|
||||||
|
%make_build all
|
||||||
|
|
||||||
|
%install
|
||||||
|
# sss_obfuscate is compatible with both python 2 and 3
|
||||||
|
perl -i -lpe 's{%_bindir/python\b}{%_bindir/python3}' src/tools/sss_obfuscate
|
||||||
|
%make_install dbuspolicydir=%_datadir/dbus-1/system.d
|
||||||
|
b="%buildroot"
|
||||||
|
|
||||||
|
# Copy some defaults
|
||||||
|
%if "%{?_distconfdir}" != ""
|
||||||
|
install -D -p -m 0600 src/examples/sssd-example.conf "$b/%_distconfdir/sssd/sssd.conf"
|
||||||
|
install -d -m 0755 "$b/%_distconfdir/sssd/conf.d"
|
||||||
|
%else
|
||||||
|
install -D -p -m 0600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf"
|
||||||
|
install -d -m 0755 "$b/%_sysconfdir/sssd/conf.d"
|
||||||
|
%endif
|
||||||
|
install -d "$b/%_unitdir"
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
install -d "$b/%_distconfdir/logrotate.d"
|
||||||
|
install -m644 src/examples/logrotate "$b/%_distconfdir/logrotate.d/sssd"
|
||||||
|
install -d "$b/%_pam_vendordir"
|
||||||
|
mv "$b/%_pam_confdir/sssd-shadowutils" "$b/%_pam_vendordir"
|
||||||
|
%else
|
||||||
|
install -d "$b/%_sysconfdir/logrotate.d"
|
||||||
|
install -m644 src/examples/logrotate "$b/%_sysconfdir/logrotate.d/sssd"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
rm -Rfv "$b/%_initddir"
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
ln -s service "$b/%_sbindir/rcsssd"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
mkdir -pv "$b/%sssdstatedir/mc"
|
||||||
|
find "$b" -type f -name "*.la" -print -delete
|
||||||
|
%find_lang %name --all-name
|
||||||
|
|
||||||
|
# dummy target for cifs-idmap-plugin
|
||||||
|
mkdir -pv %buildroot/%_sysconfdir/alternatives %buildroot/%_sysconfdir/cifs-utils
|
||||||
|
ln -sfv %_sysconfdir/alternatives/%cifs_idmap_name %buildroot/%cifs_idmap_plugin
|
||||||
|
%python3_fix_shebang
|
||||||
|
%if 0%{?suse_version} > 1600
|
||||||
|
%python3_fix_shebang_path %buildroot/%_libexecdir/%name/
|
||||||
|
%elif 0%{?suse_version} == 1600
|
||||||
|
# python3_fix_shebang_path macro does not exist in < 1600, was added in python-rom-macros 20231204
|
||||||
|
sed -i '1s@#!.*python.*@#!%{_bindir}/python3.11@' %{buildroot}/%{_libexecdir}/%{name}/sss_analyze
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%check
|
||||||
|
# sss_config-tests fails
|
||||||
|
%make_build check || :
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre sssd.service
|
||||||
|
%if "%{?_distconfdir}" != ""
|
||||||
|
# Prepare for migration to /usr/etc; save any old .rpmsave
|
||||||
|
for i in sssd/sssd.conf pam.d/sssd-shadowutils logrotate.d/sssd ; do
|
||||||
|
test -f "%_sysconfdir/$i.rpmsave" && mv -v "%_sysconfdir/$i.rpmsave" "%_sysconfdir/$i.rpmsave.old" || :
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
# migrate config variable krb5_kdcip to krb5_server (bnc#851048)
|
||||||
|
if [ -f "%_sysconfdir/sssd/sssd.conf" ]; then
|
||||||
|
/bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' "%_sysconfdir/sssd/sssd.conf"
|
||||||
|
fi
|
||||||
|
%service_add_post sssd.service
|
||||||
|
|
||||||
|
# install SSSD cifs-idmap plugin as an alternative
|
||||||
|
update-alternatives --install %cifs_idmap_plugin %cifs_idmap_name %cifs_idmap_lib %cifs_idmap_priority
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun sssd.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
if [ "$1" = "0" -a -x "%_sbindir/pam-config" ]; then
|
||||||
|
"%_sbindir/pam-config" -d --sss || :
|
||||||
|
fi
|
||||||
|
# del_postun includes a try-restart
|
||||||
|
%service_del_postun sssd.service
|
||||||
|
|
||||||
|
if [ ! -f "%cifs_idmap_lib" ]; then
|
||||||
|
update-alternatives --remove %cifs_idmap_name %cifs_idmap_lib
|
||||||
|
fi
|
||||||
|
|
||||||
|
%post -n libsss_certmap0 -p /sbin/ldconfig
|
||||||
|
%postun -n libsss_certmap0 -p /sbin/ldconfig
|
||||||
|
%post -n libipa_hbac0 -p /sbin/ldconfig
|
||||||
|
%postun -n libipa_hbac0 -p /sbin/ldconfig
|
||||||
|
%post -n libsss_idmap0 -p /sbin/ldconfig
|
||||||
|
%postun -n libsss_idmap0 -p /sbin/ldconfig
|
||||||
|
%post -n libsss_nss_idmap0 -p /sbin/ldconfig
|
||||||
|
%postun -n libsss_nss_idmap0 -p /sbin/ldconfig
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%post -n libsss_simpleifp0 -p /sbin/ldconfig
|
||||||
|
%postun -n libsss_simpleifp0 -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%triggerun -- %name < %version-%release
|
||||||
|
# sssd takes care of upgrading the database but it doesn't handle downgrades.
|
||||||
|
# Clear caches when downgrading the package, which may have an
|
||||||
|
# incompatible format afterwards preventing the daemon from startup.
|
||||||
|
if [ "$1" = "1" ] && [ "$2" = "2" ]; then
|
||||||
|
echo "Package downgrade detected, removing cache files which may have an incompatible format."
|
||||||
|
rm -f /var/lib/sss/db/*.ldb
|
||||||
|
fi
|
||||||
|
|
||||||
|
%pre dbus
|
||||||
|
%service_add_pre sssd-ifp.service
|
||||||
|
|
||||||
|
%post dbus
|
||||||
|
%service_add_post sssd-ifp.service
|
||||||
|
|
||||||
|
%preun dbus
|
||||||
|
%service_del_preun sssd-ifp.service
|
||||||
|
|
||||||
|
%postun dbus
|
||||||
|
%service_del_postun sssd-ifp.service
|
||||||
|
|
||||||
|
%pre kcm
|
||||||
|
%service_add_pre sssd-kcm.service sssd-kcm.socket
|
||||||
|
|
||||||
|
%post kcm
|
||||||
|
%service_add_post sssd-kcm.service sssd-kcm.socket
|
||||||
|
|
||||||
|
%preun kcm
|
||||||
|
%service_del_preun sssd-kcm.service sssd-kcm.socket
|
||||||
|
|
||||||
|
%postun kcm
|
||||||
|
%service_del_postun sssd-kcm.service sssd-kcm.socket
|
||||||
|
|
||||||
|
%pretrans
|
||||||
|
# Migrate sssd.service from sssd-common to sssd
|
||||||
|
systemctl is-enabled sssd.service > /dev/null
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
mkdir -p /run/systemd/rpm/
|
||||||
|
touch /run/systemd/rpm/sssd-was-enabled
|
||||||
|
fi
|
||||||
|
systemctl is-active sssd.service > /dev/null
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
mkdir -p /run/systemd/rpm/
|
||||||
|
touch /run/systemd/rpm/sssd-was-active
|
||||||
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
%if "%{?_distconfdir}" != ""
|
||||||
|
# Migration to /usr/etc, restore just created .rpmsave
|
||||||
|
for i in sssd/sssd.conf logrotate.d/sssd pam.d/sssd-shadowutils ; do
|
||||||
|
test -f "%_sysconfdir/$i.rpmsave" && mv -v "%_sysconfdir/$i.rpmsave" "%_sysconfdir/$i" || :
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
# Migrate sssd.service from sssd-common to sssd
|
||||||
|
if [ -e /run/systemd/rpm/sssd-was-enabled ]; then
|
||||||
|
systemctl is-enabled sssd.service > /dev/null
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Migrating sssd.service, was enabled"
|
||||||
|
systemctl enable sssd.service
|
||||||
|
fi
|
||||||
|
rm /run/systemd/rpm/sssd-was-enabled
|
||||||
|
fi
|
||||||
|
if [ -e /run/systemd/rpm/sssd-was-active ]; then
|
||||||
|
systemctl is-active sssd.service > /dev/null
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Migrating sssd.service, was active"
|
||||||
|
systemctl start sssd.service
|
||||||
|
fi
|
||||||
|
rm /run/systemd/rpm/sssd-was-active
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files -f sssd.lang
|
||||||
|
%license COPYING
|
||||||
|
%_unitdir/sssd.service
|
||||||
|
%_unitdir/sssd-autofs.socket
|
||||||
|
%_unitdir/sssd-autofs.service
|
||||||
|
%_unitdir/sssd-nss.socket
|
||||||
|
%_unitdir/sssd-nss.service
|
||||||
|
%_unitdir/sssd-pac.socket
|
||||||
|
%_unitdir/sssd-pac.service
|
||||||
|
%_unitdir/sssd-pam.socket
|
||||||
|
%_unitdir/sssd-pam.service
|
||||||
|
%_unitdir/sssd-ssh.socket
|
||||||
|
%_unitdir/sssd-ssh.service
|
||||||
|
%_unitdir/sssd-sudo.socket
|
||||||
|
%_unitdir/sssd-sudo.service
|
||||||
|
%_bindir/sss_ssh_*
|
||||||
|
%_sbindir/sssd
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%_sbindir/rcsssd
|
||||||
|
%endif
|
||||||
|
%dir %_mandir/??/
|
||||||
|
%dir %_mandir/??/man[158]/
|
||||||
|
%_mandir/??/man1/sss_ssh_*
|
||||||
|
%_mandir/??/man5/sss-certmap.5*
|
||||||
|
%_mandir/??/man5/sssd-ad.5*
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%_mandir/??/man5/sssd-files.5*
|
||||||
|
%endif
|
||||||
|
%_mandir/??/man5/sssd-ldap-attributes.5*
|
||||||
|
%_mandir/??/man5/sssd-session-recording.5*
|
||||||
|
%_mandir/??/man5/sssd-simple.5*
|
||||||
|
%_mandir/??/man5/sssd-sudo.5*
|
||||||
|
%_mandir/??/man5/sssd-systemtap.5*
|
||||||
|
%_mandir/??/man5/sssd.conf.5*
|
||||||
|
%_mandir/??/man8/idmap_sss.8*
|
||||||
|
%_mandir/??/man8/sssd.8*
|
||||||
|
%_mandir/man1/sss_ssh_*
|
||||||
|
%_mandir/man5/sss-certmap.5*
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%_mandir/man5/sssd-files.5*
|
||||||
|
%endif
|
||||||
|
%_mandir/man5/sssd-ldap-attributes.5*
|
||||||
|
%_mandir/man5/sssd-session-recording.5*
|
||||||
|
%_mandir/man5/sssd-simple.5*
|
||||||
|
%_mandir/man5/sssd-sudo.5*
|
||||||
|
%_mandir/man5/sssd.conf.5*
|
||||||
|
%_mandir/man8/sssd.8*
|
||||||
|
%dir %_libdir/%name/
|
||||||
|
%_libdir/%name/conf/
|
||||||
|
%_libdir/%name/libifp_iface*
|
||||||
|
%_libdir/%name/libsss_child*
|
||||||
|
%_libdir/%name/libsss_cert*
|
||||||
|
%_libdir/%name/libsss_crypt*
|
||||||
|
%_libdir/%name/libsss_debug*
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%_libdir/%name/libsss_files*
|
||||||
|
%endif
|
||||||
|
%_libdir/%name/libsss_iface*
|
||||||
|
%_libdir/%name/libsss_semanage*
|
||||||
|
%_libdir/%name/libsss_sbus*
|
||||||
|
%_libdir/%name/libsss_simple*
|
||||||
|
%_libdir/%name/libsss_util*
|
||||||
|
%dir %_libdir/%name/modules/
|
||||||
|
%_libdir/%name/modules/libsss_autofs.so
|
||||||
|
%_libdir/libsss_sudo.so
|
||||||
|
%ldbdir/
|
||||||
|
%dir %_libexecdir/%name/
|
||||||
|
%_libexecdir/%name/p11_child
|
||||||
|
%_libexecdir/%name/sssd_autofs
|
||||||
|
%_libexecdir/%name/sssd_be
|
||||||
|
%_libexecdir/%name/sssd_nss
|
||||||
|
%_libexecdir/%name/sssd_pam
|
||||||
|
%_libexecdir/%name/sssd_ssh
|
||||||
|
%_libexecdir/%name/sssd_sudo
|
||||||
|
%_libexecdir/%name/sss_signal
|
||||||
|
%_libexecdir/%name/sssd_check_socket_activated_responders
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
|
%_libexecdir/%name/selinux_child
|
||||||
|
%endif
|
||||||
|
%dir %sssdstatedir
|
||||||
|
%attr(700,root,root) %dir %dbpath/
|
||||||
|
%attr(755,root,root) %dir %pipepath/
|
||||||
|
%attr(700,root,root) %dir %pipepath/private/
|
||||||
|
%attr(755,root,root) %dir %pubconfpath/
|
||||||
|
%attr(755,root,root) %dir %pubconfpath/krb5.include.d
|
||||||
|
%attr(755,root,root) %dir %gpocachepath/
|
||||||
|
%attr(755,root,root) %dir %sssdstatedir/mc/
|
||||||
|
%attr(700,root,root) %dir %sssdstatedir/keytabs/
|
||||||
|
%attr(750,root,root) %dir %_localstatedir/log/%name/
|
||||||
|
%if "%{?_distconfdir}" != ""
|
||||||
|
%dir %_distconfdir/sssd/
|
||||||
|
%%dir %_distconfdir/sssd/conf.d
|
||||||
|
%config(noreplace) %_distconfdir/sssd/sssd.conf
|
||||||
|
%else
|
||||||
|
%dir %_sysconfdir/sssd/
|
||||||
|
%%dir %_sysconfdir/sssd/conf.d
|
||||||
|
%config(noreplace) %_sysconfdir/sssd/sssd.conf
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%_distconfdir/logrotate.d/sssd
|
||||||
|
%_pam_vendordir/sssd-shadowutils
|
||||||
|
%else
|
||||||
|
%config(noreplace) %_sysconfdir/logrotate.d/sssd
|
||||||
|
%config(noreplace) %_pam_confdir/sssd-shadowutils
|
||||||
|
%endif
|
||||||
|
%dir %_datadir/%name/
|
||||||
|
%_datadir/%name/cfg_rules.ini
|
||||||
|
%_datadir/%name/sssd.api.conf
|
||||||
|
%dir %_datadir/%name/sssd.api.d/
|
||||||
|
%_datadir/%name/sssd.api.d/sssd-simple.conf
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%_datadir/%name/sssd.api.d/sssd-files.conf
|
||||||
|
%else
|
||||||
|
%exclude %_mandir/*/*/sssd-files.5.gz
|
||||||
|
%endif
|
||||||
|
%doc src/examples/sssd.conf
|
||||||
|
#
|
||||||
|
# sssd-client
|
||||||
|
#
|
||||||
|
/%_lib/libnss_sss.so.2
|
||||||
|
%_pam_moduledir/pam_sss.so
|
||||||
|
%_pam_moduledir/pam_sss_gss.so
|
||||||
|
%_libdir/krb5/
|
||||||
|
%_libdir/%name/modules/sssd_krb5_localauth_plugin.so
|
||||||
|
%exclude %_libdir/%name/modules/sssd_krb5_idp_plugin.so
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
|
%_libdir/libsubid_sss.so
|
||||||
|
%endif
|
||||||
|
%_mandir/??/man8/sssd_krb5_locator_plugin.8*
|
||||||
|
%_mandir/??/man8/pam_sss.8*
|
||||||
|
%_mandir/??/man8/pam_sss_gss.8*
|
||||||
|
%_mandir/man8/pam_sss.8*
|
||||||
|
%_mandir/man8/pam_sss_gss.8*
|
||||||
|
%_mandir/man8/sssd_krb5_localauth_plugin.8*
|
||||||
|
%_mandir/??/man8/sssd_krb5_localauth_plugin.8*
|
||||||
|
%_mandir/man8/sssd_krb5_locator_plugin.8*
|
||||||
|
# cifs idmap plugin
|
||||||
|
%dir %_sysconfdir/cifs-utils
|
||||||
|
%cifs_idmap_plugin
|
||||||
|
%dir %_libdir/cifs-utils
|
||||||
|
%cifs_idmap_lib
|
||||||
|
%ghost %_sysconfdir/alternatives/%cifs_idmap_name
|
||||||
|
|
||||||
|
%files ad
|
||||||
|
%dir %_libdir/%name/
|
||||||
|
%_libdir/%name/libsss_ad.so
|
||||||
|
%dir %_libexecdir/%name/
|
||||||
|
%_libexecdir/%name/sssd_pac
|
||||||
|
%_libexecdir/%name/gpo_child
|
||||||
|
%dir %_datadir/%name/
|
||||||
|
%dir %_datadir/%name/sssd.api.d/
|
||||||
|
%_datadir/%name/sssd.api.d/sssd-ad.conf
|
||||||
|
%_mandir/man5/sssd-ad.5*
|
||||||
|
%dir %_mandir/??/
|
||||||
|
%dir %_mandir/??/man5/
|
||||||
|
|
||||||
|
%files dbus
|
||||||
|
%dir %_libexecdir/sssd/
|
||||||
|
%_libexecdir/sssd/sssd_ifp
|
||||||
|
%dir %_libdir/sssd/
|
||||||
|
%_mandir/man5/sssd-ifp.5*
|
||||||
|
%dir %_mandir/??/
|
||||||
|
%dir %_mandir/??/man5/
|
||||||
|
%_mandir/??/man5/sssd-ifp.5*
|
||||||
|
%_unitdir/sssd-ifp.service
|
||||||
|
%_datadir/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf
|
||||||
|
%_datadir/dbus-1/system-services/org.freedesktop.sssd.infopipe.service
|
||||||
|
|
||||||
|
%files ipa
|
||||||
|
%dir %_libdir/%name/
|
||||||
|
%_libdir/%name/libsss_ipa*
|
||||||
|
%dir %_datadir/%name/
|
||||||
|
%dir %_datadir/%name/sssd.api.d
|
||||||
|
%_datadir/%name/sssd.api.d/sssd-ipa.conf
|
||||||
|
%_mandir/man5/sssd-ipa.5*
|
||||||
|
%dir %_mandir/??/
|
||||||
|
%dir %_mandir/??/man5/
|
||||||
|
%_mandir/??/man5/sssd-ipa.5*
|
||||||
|
|
||||||
|
%files kcm
|
||||||
|
%dir %_libexecdir/sssd/
|
||||||
|
%_libexecdir/sssd/sssd_kcm
|
||||||
|
%dir %_libdir/sssd/
|
||||||
|
%_mandir/man8/sssd-kcm.8*
|
||||||
|
%_mandir/??/man8/sssd-kcm.8*
|
||||||
|
%_datadir/sssd-kcm/
|
||||||
|
%_unitdir/sssd-kcm.*
|
||||||
|
|
||||||
|
%files krb5
|
||||||
|
%dir %_libdir/%name/
|
||||||
|
%_libdir/%name/libsss_krb5.so
|
||||||
|
%dir %_datadir/%name/
|
||||||
|
%exclude %_datadir/%name/krb5-snippets/
|
||||||
|
%dir %_datadir/%name/sssd.api.d/
|
||||||
|
%_datadir/%name/sssd.api.d/sssd-krb5.conf
|
||||||
|
%dir %_mandir/??/
|
||||||
|
%dir %_mandir/??/man5/
|
||||||
|
%_mandir/man5/sssd-krb5.5*
|
||||||
|
%_mandir/??/man5/sssd-krb5.5*
|
||||||
|
|
||||||
|
%files krb5-common
|
||||||
|
%dir %_libdir/%name/
|
||||||
|
%_libdir/%name/libsss_krb5_common.so
|
||||||
|
%dir %_libexecdir/%name/
|
||||||
|
%_libexecdir/%name/krb5_child
|
||||||
|
%_libexecdir/%name/ldap_child
|
||||||
|
|
||||||
|
%files ldap
|
||||||
|
%dir %_libdir/%name/
|
||||||
|
%_libdir/%name/libsss_ldap*
|
||||||
|
%dir %_datadir/%name/
|
||||||
|
%dir %_datadir/%name/sssd.api.d/
|
||||||
|
%_datadir/%name/sssd.api.d/sssd-ldap.conf
|
||||||
|
%_mandir/man5/sssd-ldap.5*
|
||||||
|
%dir %_mandir/??/
|
||||||
|
%dir %_mandir/??/man5/
|
||||||
|
%_mandir/??/man5/sssd-ldap.5*
|
||||||
|
|
||||||
|
%files proxy
|
||||||
|
%dir %_libdir/%name/
|
||||||
|
%_libdir/%name/libsss_proxy.so
|
||||||
|
%dir %_libexecdir/%name/
|
||||||
|
%_libexecdir/%name/proxy_child
|
||||||
|
%dir %_datadir/%name/
|
||||||
|
%dir %_datadir/%name/sssd.api.d/
|
||||||
|
%_datadir/%name/sssd.api.d/sssd-proxy.conf
|
||||||
|
|
||||||
|
%files tools
|
||||||
|
%_sbindir/sssctl
|
||||||
|
%_sbindir/sss_cache
|
||||||
|
%_sbindir/sss_debuglevel
|
||||||
|
%_sbindir/sss_seed
|
||||||
|
%_sbindir/sss_obfuscate
|
||||||
|
%_sbindir/sss_override
|
||||||
|
%_libexecdir/%name/sss_analyze
|
||||||
|
%dir %_mandir/??/man8/
|
||||||
|
%_mandir/??/man8/sssctl.8*
|
||||||
|
%_mandir/??/man8/sss_*.8*
|
||||||
|
%_mandir/man8/sssctl.8*
|
||||||
|
%_mandir/man8/sss_*.8*
|
||||||
|
%python3_sitelib/sssd/
|
||||||
|
|
||||||
|
%files winbind-idmap
|
||||||
|
%dir %_libdir/samba/
|
||||||
|
%_libdir/samba/idmap/
|
||||||
|
%_mandir/man8/idmap_sss.8*
|
||||||
|
|
||||||
|
%files -n libipa_hbac0
|
||||||
|
%_libdir/libipa_hbac.so.0*
|
||||||
|
|
||||||
|
%files -n libipa_hbac-devel
|
||||||
|
%_includedir/ipa_hbac.h
|
||||||
|
%_libdir/libipa_hbac.so
|
||||||
|
%_libdir/pkgconfig/ipa_hbac.pc
|
||||||
|
|
||||||
|
%files -n libsss_certmap0
|
||||||
|
%_libdir/libsss_certmap.so.0*
|
||||||
|
|
||||||
|
%files -n libsss_certmap-devel
|
||||||
|
%_includedir/sss_certmap.h
|
||||||
|
%_libdir/libsss_certmap.so
|
||||||
|
%_libdir/pkgconfig/sss_certmap.pc
|
||||||
|
|
||||||
|
%files -n libnfsidmap-sss
|
||||||
|
%_libdir/libnfsidmap/
|
||||||
|
%_mandir/man5/sss_rpcidmapd.5*
|
||||||
|
%dir %_mandir/??/man5/
|
||||||
|
%_mandir/??/man5/sss_rpcidmapd.5*
|
||||||
|
|
||||||
|
%files -n libsss_idmap0
|
||||||
|
%_libdir/libsss_idmap.so.0*
|
||||||
|
|
||||||
|
%files -n libsss_idmap-devel
|
||||||
|
%_includedir/sss_idmap.h
|
||||||
|
%_libdir/libsss_idmap.so
|
||||||
|
%_libdir/pkgconfig/sss_idmap.pc
|
||||||
|
|
||||||
|
%files -n libsss_nss_idmap0
|
||||||
|
%_libdir/libsss_nss_idmap.so.0*
|
||||||
|
|
||||||
|
%files -n libsss_nss_idmap-devel
|
||||||
|
%_includedir/sss_nss_idmap.h
|
||||||
|
%_libdir/libsss_nss_idmap.so
|
||||||
|
%_libdir/pkgconfig/sss_nss_idmap.pc
|
||||||
|
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
%files -n libsss_simpleifp0
|
||||||
|
%_libdir/libsss_simpleifp.so.0*
|
||||||
|
|
||||||
|
%files -n libsss_simpleifp-devel
|
||||||
|
%_includedir/sss_sifp*.h
|
||||||
|
%_libdir/libsss_simpleifp.so
|
||||||
|
%_libdir/pkgconfig/sss_simpleifp.pc
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python3-ipa_hbac
|
||||||
|
%dir %python3_sitearch
|
||||||
|
%python3_sitearch/pyhbac.so
|
||||||
|
|
||||||
|
%files -n python3-sss-murmur
|
||||||
|
%python3_sitearch/pysss_murmur.so
|
||||||
|
|
||||||
|
%files -n python3-sss_nss_idmap
|
||||||
|
%dir %python3_sitearch
|
||||||
|
%python3_sitearch/pysss_nss_idmap.so
|
||||||
|
|
||||||
|
%files -n python3-sssd-config
|
||||||
|
%python3_sitearch/pysss.so
|
||||||
|
%python3_sitelib/SSSDConfig*
|
||||||
|
|
||||||
|
%changelog
|
181
symvers.patch
Normal file
181
symvers.patch
Normal file
@ -0,0 +1,181 @@
|
|||||||
|
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(-)
|
||||||
|
|
||||||
|
Index: sssd-2.9.2/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- sssd-2.9.2.orig/Makefile.am
|
||||||
|
+++ sssd-2.9.2/Makefile.am
|
||||||
|
@@ -955,7 +955,11 @@ libsss_debug_la_SOURCES = \
|
||||||
|
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
|
||||||
|
@@ -965,7 +969,8 @@ libsss_child_la_LIBADD = \
|
||||||
|
$(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
|
||||||
|
|
||||||
|
@@ -1004,7 +1009,8 @@ libsss_crypt_la_LIBADD = \
|
||||||
|
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
|
||||||
|
|
||||||
|
@@ -1029,8 +1035,9 @@ libsss_cert_la_LIBADD = \
|
||||||
|
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)
|
||||||
|
@@ -1131,8 +1138,9 @@ libsss_sbus_la_CFLAGS = \
|
||||||
|
$(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 = \
|
||||||
|
@@ -1167,8 +1175,9 @@ libsss_sbus_sync_la_CFLAGS = \
|
||||||
|
$(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 = \
|
||||||
|
@@ -1197,8 +1206,9 @@ libsss_iface_la_CFLAGS = \
|
||||||
|
$(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 = \
|
||||||
|
@@ -1225,8 +1235,9 @@ libsss_iface_sync_la_CFLAGS = \
|
||||||
|
$(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 = \
|
||||||
|
@@ -1322,7 +1333,8 @@ endif
|
||||||
|
if BUILD_PASSKEY
|
||||||
|
libsss_util_la_SOURCES += src/db/sysdb_passkey_user_verification.c
|
||||||
|
endif # BUILD_PASSKEY
|
||||||
|
-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 = \
|
||||||
|
@@ -1341,7 +1353,8 @@ libsss_semanage_la_LIBADD += $(SEMANAGE_
|
||||||
|
endif
|
||||||
|
|
||||||
|
libsss_semanage_la_LDFLAGS = \
|
||||||
|
- -avoid-version
|
||||||
|
+ -avoid-version ${symv}
|
||||||
|
+EXTRA_libsss_semanage_la_DEPENDENCIES = x.sym
|
||||||
|
|
||||||
|
SSSD_INTERNAL_LTLIBS = \
|
||||||
|
libsss_util.la \
|
||||||
|
@@ -1357,7 +1370,7 @@ lib_LTLIBRARIES = libipa_hbac.la \
|
||||||
|
$(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
|
||||||
|
@@ -1688,8 +1701,9 @@ libifp_iface_la_CFLAGS = \
|
||||||
|
$(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 = \
|
||||||
|
@@ -1714,8 +1728,9 @@ libifp_iface_sync_la_CFLAGS = \
|
||||||
|
$(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 \
|
||||||
|
@@ -4314,8 +4329,9 @@ libsss_ldap_common_la_LIBADD = \
|
||||||
|
$(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
|
||||||
|
@@ -4372,7 +4388,8 @@ libsss_krb5_common_la_LIBADD = \
|
||||||
|
$(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 \
|
Loading…
Reference in New Issue
Block a user