linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Olga Kornievskaia <kolga@netapp.com>
To: <steved@redhat.com>
Cc: <linux-nfs@vger.kernel.org>
Subject: [RFC PATCH v4 0/3] adding pthread support to gssd
Date: Tue, 26 Apr 2016 09:34:12 -0400	[thread overview]
Message-ID: <1461677655-68294-1-git-send-email-kolga@netapp.com> (raw)

Adding support for multi-threaded gssd and allow for parallel upcalls.
For each upcall create a thread, detach to allow for automatic cleanup.
Communicate location of credential cache with gss api function instead
of an environmental variable. Use syscall api instead of libc setuid()
to change user identity.

Previously parent thread after detaching from child thread would call
yield to let the child thread run and consume the event from the fd.
Instead, use synchronization variables to signal parent after reading
from fd and have parent thread wait for the event.

Olga Kornievskaia (3):
  gssd: use pthreads to handle upcalls
  gssd: using syscalls directly to change thread's identity
  gssd: always call gss_krb5_ccache_name

 aclocal/libpthread.m4  | 13 ++++++++++
 configure.ac           |  3 +++
 utils/gssd/Makefile.am |  3 ++-
 utils/gssd/gssd.c      | 44 ++++++++++++++++++++++++++++++---
 utils/gssd/gssd.h      |  5 ++++
 utils/gssd/gssd_proc.c | 66 +++++++++++++++++++++++---------------------------
 utils/gssd/krb5_util.c | 59 ++++++++++----------------------------------
 utils/gssd/krb5_util.h |  1 -
 8 files changed, 106 insertions(+), 88 deletions(-)
 create mode 100644 aclocal/libpthread.m4

-- 
1.8.3.1


             reply	other threads:[~2016-04-26 13:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-26 13:34 Olga Kornievskaia [this message]
2016-04-26 13:34 ` [PATCH v4 1/3] gssd: use pthreads to handle upcalls Olga Kornievskaia
2016-04-26 13:34 ` [PATCH v4 2/3] gssd: using syscalls directly to change thread's identity Olga Kornievskaia
2016-04-26 16:51   ` Jeff Layton
2016-04-27 14:09     ` Olga Kornievskaia
2016-04-27 14:13       ` Jeff Layton
2016-04-27 15:01         ` Kornievskaia, Olga
2016-04-27 15:19           ` Steve Dickson
2016-04-26 13:34 ` [PATCH v4 3/3] gssd: always call gss_krb5_ccache_name Olga Kornievskaia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461677655-68294-1-git-send-email-kolga@netapp.com \
    --to=kolga@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=steved@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).