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