diff options
| author | Sumit Bose <sbose@redhat.com> | 2016-01-14 13:33:53 +0100 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-01-19 17:42:07 +0100 |
| commit | 9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832 (patch) | |
| tree | 5319a888ab655b440a2432548ed835e1e75210c2 /src/providers | |
| parent | a7d2b4f157194c14bc4a40c74f6416b82befa460 (diff) | |
| download | sssd-9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832.tar.gz sssd-9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832.tar.xz sssd-9dcc7dbf04466cd8cd90aa0bb8acbebef9aca832.zip | |
UTIL: allow to skip default options for child processes
Currently the SSSD default options like e.g. --debug-level are added
unconditionally to the command line options of a child process when
started with the child helper functions.
If a binary from a different source should be started as a child by SSSD
those options might not be known or used differently. This patch adds an
option to exec_child_ex() which allows to skip the default options and
only add specific options.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers')
| -rw-r--r-- | src/providers/ad/ad_gpo.c | 2 | ||||
| -rw-r--r-- | src/providers/krb5/krb5_child_handler.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ad/ad_gpo.c b/src/providers/ad/ad_gpo.c index cca5e586..069196c3 100644 --- a/src/providers/ad/ad_gpo.c +++ b/src/providers/ad/ad_gpo.c @@ -4144,7 +4144,7 @@ gpo_fork_child(struct tevent_req *req) if (pid == 0) { /* child */ err = exec_child_ex(state, pipefd_to_child, pipefd_from_child, - GPO_CHILD, gpo_child_debug_fd, NULL, + GPO_CHILD, gpo_child_debug_fd, NULL, false, STDIN_FILENO, AD_GPO_CHILD_OUT_FILENO); DEBUG(SSSDBG_CRIT_FAILURE, "Could not exec gpo_child: [%d][%s].\n", err, strerror(err)); diff --git a/src/providers/krb5/krb5_child_handler.c b/src/providers/krb5/krb5_child_handler.c index fa1055eb..167a2b2a 100644 --- a/src/providers/krb5/krb5_child_handler.c +++ b/src/providers/krb5/krb5_child_handler.c @@ -312,7 +312,7 @@ static errno_t fork_child(struct tevent_req *req) err = exec_child_ex(state, pipefd_to_child, pipefd_from_child, KRB5_CHILD, state->kr->krb5_ctx->child_debug_fd, - k5c_extra_args, STDIN_FILENO, STDOUT_FILENO); + k5c_extra_args, false, STDIN_FILENO, STDOUT_FILENO); if (err != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "Could not exec KRB5 child: [%d][%s].\n", err, strerror(err)); |
