6a5a87a373
Resolves: rhbz#2017390 - [sssd] RHEL 9.0 GA Tier 0 Localization Resolves: rhbz#2013263 - [RHEL9] Add ability to parse child log files Resolves: rhbz#2013262 - [RHEL9] Add tevent chain ID logic into responders Resolves: rhbz#1992432 - Add client certificate validation D-Bus API Resolves: rhbz#1940517 - [RFE] Health and Support Analyzer: Add sssctl sub-command to select and display a single request from the logs
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
|
|
|