aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-09-28 14:12:58 -0400
committerGreg Hudson <ghudson@mit.edu>2013-10-02 10:41:34 -0400
commit7c69a0372db5b7ed670ef3099a97942ede7a4739 (patch)
treeb6561c3c5e5675fad5617e5795b9654a3e3f5cba /src/tests
parentc1e8d03a6254e3ce86a71eed31e4c127e3324f9b (diff)
downloadkrb5-7c69a0372db5b7ed670ef3099a97942ede7a4739.zip
krb5-7c69a0372db5b7ed670ef3099a97942ede7a4739.tar.gz
krb5-7c69a0372db5b7ed670ef3099a97942ede7a4739.tar.bz2
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@redhat.com. ticket: 7711
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions