linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH Version 2 0/3] GSSD: Use gss-ctx keys and gsskeyd to sync Kerberos credentials and kernel gss_contexts.
@ 2013-10-22 14:22 andros
  2013-10-22 14:22 ` [PATCH Version 2 1/3] GSSD add cc_name to upcall andros
                   ` (3 more replies)
  0 siblings, 4 replies; 27+ messages in thread
From: andros @ 2013-10-22 14:22 UTC (permalink / raw)
  To: steved; +Cc: linux-nfs, Andy Adamson

From: Andy Adamson <andros@netapp.com>

This is an RFC patchset, which will be used for testing.

This patchset requires the "SUNRPC: destroy gss_cred and context on Kerberos credential destruction" kernel patchset.

We need to do a lot of testing to ensure that once kdestroy and gss-ctx
gss_user_destroy is called, all existing buffered
writes using the 'destroyed gss credential + context' are serviced.

Differences from version 1:

- moved from nfstgt_login and nfstgt_logout to gsskeyd.
- gsskeyd automatically creates gss-ctx key on kinit and destroys the gss-ctx
key on kdestroy.

gsskeyd will need to act differently for different krb5 credential caches.
For example, some versions of gssd store FILE credentials in FILE:/tmp/krb5cc_<UID>
while this code, written for fedora 19 uses FILE:/run/user/<UID>/krb5cc/tgt.

As Trond suggested, if we keep gsskeyd separate from gssd, we could set up a
configuration file along the lines of the keytools' request-key.conf file to
allow both NFS and CIFS (and other filesystems) to install plugin handlers
for kinit/kdestroy events.

Else, we could have gssd be the process to poll inotify (given
that it already polls rpc_pipefs) and then just have it fork off the
subprocess if and when it sees an interesting event.

We need to investigate how this works when the kernel keyring is used for
Kerberos credentials. I believe that in this case gsskeyd can add the gss-ctx
key to the kerberos keyring, and it will get destroyed along with all other
keys at kdestroy.

Andy Adamson (2):
  GSSD add cc_name to upcall
  ANDROS: update gsskeyd to use new /run/user/UID/krb5cc/tgt cache file

Weston Andros Adamson (1):
  WIP: Add gsskeyd

 configure.ac            |   1 +
 utils/Makefile.am       |   2 +-
 utils/gssd/gssd_proc.c  |  37 ++++-
 utils/gssd/krb5_util.c  |   2 +-
 utils/gssd/krb5_util.h  |   1 +
 utils/gsskeyd/gsskeyd.c | 371 ++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 408 insertions(+), 6 deletions(-)
 create mode 100644 utils/gsskeyd/gsskeyd.c

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2013-11-22 21:39 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22 14:22 [PATCH Version 2 0/3] GSSD: Use gss-ctx keys and gsskeyd to sync Kerberos credentials and kernel gss_contexts andros
2013-10-22 14:22 ` [PATCH Version 2 1/3] GSSD add cc_name to upcall andros
2013-10-22 15:07   ` Simo Sorce
2013-10-22 14:22 ` [PATCH Version 2 2/3] WIP: Add gsskeyd andros
2013-10-23 14:30   ` Steve Dickson
2013-10-23 14:40     ` Weston Andros Adamson
2013-10-23 15:02       ` Adamson, Andy
2013-10-22 14:22 ` [PATCH Version 2 3/3] ANDROS: update gsskeyd to use new /run/user/UID/krb5cc/tgt cache file andros
2013-10-22 15:02 ` [PATCH Version 2 0/3] GSSD: Use gss-ctx keys and gsskeyd to sync Kerberos credentials and kernel gss_contexts Simo Sorce
2013-10-22 15:32   ` Adamson, Andy
2013-10-22 16:09     ` Simo Sorce
2013-10-22 17:00       ` Adamson, Andy
2013-10-22 17:25         ` Simo Sorce
2013-11-20 20:35           ` Adamson, Andy
2013-11-20 20:49             ` Simo Sorce
2013-11-20 21:21               ` Adamson, Andy
2013-11-20 21:24                 ` Adamson, Andy
2013-11-22 19:09                 ` Simo Sorce
2013-11-22 20:44                   ` Adamson, Andy
2013-11-21 13:37               ` Steve Dickson
2013-11-22 19:11                 ` Simo Sorce
2013-11-22 21:28                   ` Trond Myklebust
2013-11-22 21:39                     ` Simo Sorce
2013-10-22 15:46   ` Weston Andros Adamson
2013-10-22 16:11     ` Simo Sorce
2013-10-22 16:14       ` Weston Andros Adamson
2013-10-22 16:39         ` Adamson, Andy

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).