[krbdev.mit.edu #7711] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Wed Oct 2 10:45:03 EDT 2013


Support new KEYRING anchor names and big_key keys

Add support for the new anchor names persistent, user, and session.
The persistent anchor attempts to use a persistent keyring for a
specified uid, and falls back to the user keyring if it cannot; the
collection is stored at a fixed name within the persistent or user
keyring.  The session anchor uses the session keyring without legacy
semantics.

For all keyring types except legacy, attempt to use the "big_key" key
type on systems which have keyctl_get_persistent.  (They are
essentially unrelated features, but were added at the same time.)
This key type is stored in a kernel tmpfs and can store larger
tickets.

Since kernel commit 96b5c8fea6c0861621051290d705ec2e971963f1, new keys
created by add_key() only have VIEW permission for the user, and the
rest of the permissions require "possession," which means there is a
path from the thread, process, or session keyring to the key.  For the
user and persistent anchor types, we link the collection into the
process keyring to ensure that we have a possession rights on the
collection.

Adapted from a patch by simo at redhat.com.

https://github.com/krb5/krb5/commit/7c69a0372db5b7ed670ef3099a97942ede7a4739
Author: Greg Hudson <ghudson at mit.edu>
Commit: 7c69a0372db5b7ed670ef3099a97942ede7a4739
Branch: master
 src/aclocal.m4                        |   10 ++
 src/lib/krb5/ccache/cc_keyring.c      |  164 +++++++++++++++++++++++++++------
 src/lib/krb5/error_tables/k5e1_err.et |    1 +
 3 files changed, 148 insertions(+), 27 deletions(-)



More information about the krb5-bugs mailing list