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