URL: https://github.com/SSSD/sssd/pull/5675
Author: justin-stephenson
 Title: #5675: KCM: Unset _SSS_LOOPS
Action: synchronized

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5675/head:pr5675
git checkout pr5675
From 98fd1ddfb5fd45fae755b7b4d734c76de5fad0b4 Mon Sep 17 00:00:00 2001
From: Justin Stephenson <[email protected]>
Date: Thu, 10 Jun 2021 09:37:52 -0400
Subject: [PATCH] KCM: Unset _SSS_LOOPS

---
 src/responder/kcm/kcm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/responder/kcm/kcm.c b/src/responder/kcm/kcm.c
index 9be56b0b84..70e0506d6f 100644
--- a/src/responder/kcm/kcm.c
+++ b/src/responder/kcm/kcm.c
@@ -306,6 +306,12 @@ static int kcm_process_init(TALLOC_CTX *mem_ctx,
     ret = activate_unix_sockets(rctx, kcm_connection_setup);
     if (ret != EOK) goto fail;
 
+    /* KCM operates independently, getpw* recursion is not a concern */
+    ret = unsetenv("_SSS_LOOPS");
+    if (ret != EOK) {
+        DEBUG(SSSDBG_CRIT_FAILURE, "Failed to unset _SSS_LOOPS");
+    }
+
     DEBUG(SSSDBG_TRACE_FUNC, "KCM Initialization complete\n");
 
     return EOK;
_______________________________________________
sssd-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to