Blame SOURCES/0001-ipa-fix-reply-socket-of-selinux_child.patch

68a254
From 5a2e0ebe83913e317f66478daeff35987c278e27 Mon Sep 17 00:00:00 2001
68a254
From: Sumit Bose <sbose@redhat.com>
68a254
Date: Tue, 4 Jan 2022 10:11:49 +0100
68a254
Subject: [PATCH] ipa: fix reply socket of selinux_child
68a254
68a254
Commit c92d39a30fa0162d4efdfbe5883c8ea9911a2249 accidentally switched
68a254
the reply socket of selinux_child from stdout to stderr while switching
68a254
from exec_child to exec_child_ex. This patch returns the original
68a254
behavior.
68a254
68a254
Resolves: https://github.com/SSSD/sssd/issues/5939
68a254
68a254
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
68a254
---
68a254
 src/providers/ipa/ipa_selinux.c | 2 +-
68a254
 1 file changed, 1 insertion(+), 1 deletion(-)
68a254
68a254
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
68a254
index 6f885c0fd..2e0593dd7 100644
68a254
--- a/src/providers/ipa/ipa_selinux.c
68a254
+++ b/src/providers/ipa/ipa_selinux.c
68a254
@@ -714,7 +714,7 @@ static errno_t selinux_fork_child(struct selinux_child_state *state)
68a254
     if (pid == 0) { /* child */
68a254
         exec_child_ex(state, pipefd_to_child, pipefd_from_child,
68a254
                       SELINUX_CHILD, SELINUX_CHILD_LOG_FILE, extra_args,
68a254
-                      false, STDIN_FILENO, STDERR_FILENO);
68a254
+                      false, STDIN_FILENO, STDOUT_FILENO);
68a254
         DEBUG(SSSDBG_CRIT_FAILURE, "Could not exec selinux_child: [%d][%s].\n",
68a254
               ret, sss_strerror(ret));
68a254
         return ret;
68a254
-- 
68a254
2.26.3
68a254