Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore full support for krb5 traces in debugging #52

Merged
merged 2 commits into from
May 27, 2022

Commits on May 26, 2022

  1. Minor correctness fixes found while reviewing

    Signed-off-by: Simo Sorce <simo@redhat.com>
    simo5 committed May 26, 2022
    Configuration menu
    Copy the full SHA
    05e4566 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2022

  1. Add a wait to redirect Krb5 tracing to our stderr

    The proccess stderr may be redirected to a socket or a pipe by the
    parent process (which is what systemd does for example).
    
    When that happen we can't simply pass a valid path to stderr so
    that libkrb5 can send the tracing via the KRB5_TRACE environment
    variable to a our stderr, passing /dev/stderr in this case will
    just result in an open error and tracing output going nowhere.
    
    To handle this we create our own fifo to pass to libkrb5 and
    then we create a thread that reads the incoming data and pipes
    it back to the stderr we've been given by our parent.
    
    Signed-off-by: Simo Sorce <simo@redhat.com>
    simo5 committed May 27, 2022
    Configuration menu
    Copy the full SHA
    5affe28 View commit details
    Browse the repository at this point in the history