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

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