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/responder/pam | |
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/responder/pam')
-rw-r--r-- | src/responder/pam/pamsrv_p11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/pam/pamsrv_p11.c b/src/responder/pam/pamsrv_p11.c index 58310a253..ea428a6a3 100644 --- a/src/responder/pam/pamsrv_p11.c +++ b/src/responder/pam/pamsrv_p11.c @@ -322,7 +322,7 @@ struct tevent_req *pam_check_cert_send(TALLOC_CTX *mem_ctx, child_pid = fork(); if (child_pid == 0) { /* child */ ret = exec_child_ex(state, pipefd_to_child, pipefd_from_child, - P11_CHILD_PATH, child_debug_fd, extra_args, + P11_CHILD_PATH, child_debug_fd, extra_args, false, STDIN_FILENO, STDOUT_FILENO); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "Could not exec p11 child: [%d][%s].\n", |