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