1 .\" Copyright (C) 2014 Red Hat, Inc. All Rights Reserved.
2 .\" Written by David Howells (dhowells@redhat.com)
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .TH USER-KEYRING 7 2020-08-13 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
8 user-keyring \- per-user keyring
10 The user keyring is a keyring used to anchor keys on behalf of a user.
11 Each UID the kernel deals with has its own user keyring that
12 is shared by all processes with that UID.
13 The user keyring has a name (description) of the form
17 is the user ID of the corresponding user.
19 The user keyring is associated with the record that the kernel maintains
21 It comes into existence upon the first attempt to access either the
23 .BR user\-session\-keyring (7),
25 .BR session\-keyring (7).
26 The keyring remains pinned in existence so long as there are processes
27 running with that real UID or files opened by those processes remain open.
28 (The keyring can also be pinned indefinitely by linking it
29 into another keyring.)
31 Typically, the user keyring is created by
35 The user keyring is not searched by default by
39 creates a session keyring, it adds to it a link to the user
40 keyring so that the user keyring will be searched when the session keyring is.
42 A special serial number value,
43 .BR KEY_SPEC_USER_KEYRING ,
44 is defined that can be used in lieu of the actual serial number of
45 the calling process's user keyring.
49 utility, '\fB@u\fP' can be used instead of a numeric key ID in
52 User keyrings are independent of
59 excepting that the keyring is destroyed when the UID record is destroyed when
60 the last process pinning it exits.
62 If it is necessary for a key associated with a user to exist beyond the UID
63 record being garbage collected\(emfor example, for use by a
66 .BR persistent\-keyring (7)
67 should be used instead.
69 If a user keyring does not exist when it is accessed, it will be created.
76 .BR persistent\-keyring (7),
77 .BR process\-keyring (7),
78 .BR session\-keyring (7),
79 .BR thread\-keyring (7),
80 .BR user\-session\-keyring (7),