Fix nss symbol collision Fedora Rawhide
This commit is contained in:
parent
dfcf325701
commit
261327da76
74
0027-nss-Collision-with-external-nss-symbol.patch
Normal file
74
0027-nss-Collision-with-external-nss-symbol.patch
Normal file
@ -0,0 +1,74 @@
|
||||
From fe9eeb51be06059721e873f77092b1e9ba08e6c1 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
|
||||
Date: Thu, 27 Feb 2020 06:50:40 +0100
|
||||
Subject: [PATCH] nss: Collision with external nss symbol
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
One of our internal static function names started
|
||||
to collide with external nss symbol. Additional
|
||||
sss_ suffix was added to avoid the collision.
|
||||
|
||||
This is needed to unblock Fedora Rawhide's
|
||||
SSSD build.
|
||||
|
||||
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
||||
---
|
||||
src/responder/nss/nss_cmd.c | 18 ++++++++++--------
|
||||
1 file changed, 10 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/responder/nss/nss_cmd.c b/src/responder/nss/nss_cmd.c
|
||||
index 356aea156..02706c4b9 100644
|
||||
--- a/src/responder/nss/nss_cmd.c
|
||||
+++ b/src/responder/nss/nss_cmd.c
|
||||
@@ -731,11 +731,13 @@ done:
|
||||
talloc_free(cmd_ctx);
|
||||
}
|
||||
|
||||
-static void nss_setnetgrent_done(struct tevent_req *subreq);
|
||||
+static void sss_nss_setnetgrent_done(struct tevent_req *subreq);
|
||||
|
||||
-static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
|
||||
- enum cache_req_type type,
|
||||
- nss_protocol_fill_packet_fn fill_fn)
|
||||
+/* This function's name started to collide with external nss symbol,
|
||||
+ * so it has additional sss_* prefix unlike other functions here. */
|
||||
+static errno_t sss_nss_setnetgrent(struct cli_ctx *cli_ctx,
|
||||
+ enum cache_req_type type,
|
||||
+ nss_protocol_fill_packet_fn fill_fn)
|
||||
{
|
||||
struct nss_ctx *nss_ctx;
|
||||
struct nss_state_ctx *state_ctx;
|
||||
@@ -777,7 +779,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
|
||||
goto done;
|
||||
}
|
||||
|
||||
- tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx);
|
||||
+ tevent_req_set_callback(subreq, sss_nss_setnetgrent_done, cmd_ctx);
|
||||
|
||||
ret = EOK;
|
||||
|
||||
@@ -790,7 +792,7 @@ done:
|
||||
return EOK;
|
||||
}
|
||||
|
||||
-static void nss_setnetgrent_done(struct tevent_req *subreq)
|
||||
+static void sss_nss_setnetgrent_done(struct tevent_req *subreq)
|
||||
{
|
||||
struct nss_cmd_ctx *cmd_ctx;
|
||||
errno_t ret;
|
||||
@@ -1040,8 +1042,8 @@ static errno_t nss_cmd_initgroups_ex(struct cli_ctx *cli_ctx)
|
||||
|
||||
static errno_t nss_cmd_setnetgrent(struct cli_ctx *cli_ctx)
|
||||
{
|
||||
- return nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
|
||||
- nss_protocol_fill_setnetgrent);
|
||||
+ return sss_nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
|
||||
+ nss_protocol_fill_setnetgrent);
|
||||
}
|
||||
|
||||
static errno_t nss_cmd_getnetgrent(struct cli_ctx *cli_ctx)
|
||||
--
|
||||
2.20.1
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
Name: sssd
|
||||
Version: 2.2.3
|
||||
Release: 13%{?dist}
|
||||
Release: 14%{?dist}
|
||||
Summary: System Security Services Daemon
|
||||
License: GPLv3+
|
||||
URL: https://pagure.io/SSSD/sssd/
|
||||
@ -69,6 +69,7 @@ Patch0023: 0023-sss_ptr_hash-internal-refactoring.patch
|
||||
Patch0024: 0024-TESTS-added-sss_ptr_hash-unit-test.patch
|
||||
Patch0025: 0025-p11_child-check-if-card-is-present-in-wait_for_card.patch
|
||||
Patch0026: 0026-PAM-client-only-require-UID-0-for-private-socket.patch
|
||||
Patch0027: 0027-nss-Collision-with-external-nss-symbol.patch
|
||||
|
||||
### Downstream only patches ###
|
||||
Patch0502: 0502-SYSTEMD-Use-capabilities.patch
|
||||
@ -1098,6 +1099,9 @@ fi
|
||||
%{_libdir}/%{name}/modules/libwbclient.so
|
||||
|
||||
%changelog
|
||||
* Fri Feb 28 2020 Michal Židek <mzidek@redhat.com> - 2.2.3-14
|
||||
- Resolves: rhbz#1800567 - sssd fail to build in Fedora rawhide
|
||||
|
||||
* Wed Feb 26 2020 Michal Židek <mzidek@redhat.com> - 2.2.3-13
|
||||
- Resolves: upstream#4159 - p11_child should have an option to skip
|
||||
C_WaitForSlotEvent if the PKCS#11 module does not
|
||||
|
Loading…
Reference in New Issue
Block a user