summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-01-07 10:36:12 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-01-13 21:03:27 +0100
commitdf95d21e5253cec8745329567ab8050bfcd52333 (patch)
tree7302780680fb7d92fef9250ec5bbc64d90166392 /src/providers/ipa
parent0af3ec742fd3d160d8b6ccc81a368e851456d61c (diff)
downloadsssd-df95d21e5253cec8745329567ab8050bfcd52333.tar.gz
sssd-df95d21e5253cec8745329567ab8050bfcd52333.tar.xz
sssd-df95d21e5253cec8745329567ab8050bfcd52333.zip
UTIL: Allow dup-ing child pipe to a different FD
Related to: https://fedorahosted.org/sssd/ticket/2544 Adds a new function exec_child_ex and moves setting the extra_argv[] to exec_child_ex() along with specifying the input and output fds. Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit 16cb0969f0a9ea71524d852077d6a480740d4f12)
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_selinux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index c4e70cfcb..133b679b6 100644
--- a/src/providers/ipa/ipa_selinux.c
+++ b/src/providers/ipa/ipa_selinux.c
@@ -1049,8 +1049,7 @@ static errno_t selinux_fork_child(struct selinux_child_state *state)
if (pid == 0) { /* child */
ret = exec_child(state,
pipefd_to_child, pipefd_from_child,
- SELINUX_CHILD, selinux_child_debug_fd,
- NULL);
+ SELINUX_CHILD, selinux_child_debug_fd);
DEBUG(SSSDBG_CRIT_FAILURE, "Could not exec selinux_child: [%d][%s].\n",
ret, sss_strerror(ret));
return ret;