2 .\" Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
3 .\" Written by David Howells (dhowells@redhat.com)
5 .\" This program is free software; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License
7 .\" as published by the Free Software Foundation; either version
8 .\" 2 of the License, or (at your option) any later version.
10 .TH KEYCTL_SET_REQKEY_KEYRING 3 "4 May 2006" Linux "Linux Key Management Calls"
11 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
13 keyctl_set_reqkey_keyring \- Set the implicit destination keyring
14 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
17 .B #include <keyutils.h>
19 .BI "long keyctl_set_reqkey_keyring(int " reqkey_defl ");"
20 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
22 .BR keyctl_set_reqkey_keyring ()
23 sets the default destination for implicit key requests for the current thread
24 and returns the old setting.
26 After this operation has been issued, keys acquired by implicit key requests,
27 such as might be performed by open() on an AFS or NFS filesystem, will be
28 linked by default to the specified keyring by this function.
34 .B KEY_REQKEY_DEFL_NO_CHANGE
35 This makes no change to the current setting.
37 .B KEY_REQKEY_DEFL_THREAD_KEYRING
38 This makes the thread-specific keyring the default destination.
40 .B KEY_REQKEY_DEFL_PROCESS_KEYRING
41 This makes the process-specific keyring the default destination.
43 .B KEY_REQKEY_DEFL_SESSION_KEYRING
44 This makes the session keyring the default destination.
46 .B KEY_REQKEY_DEFL_USER_KEYRING
47 This makes the UID-specific keyring the default destination.
49 .B KEY_REQKEY_DEFL_USER_SESSION_KEYRING
50 This makes the UID-specific session keyring the default destination.
52 .B KEY_REQKEY_DEFL_DEFAULT
53 This selects the default behaviour which is to use the thread-specific keyring
54 if there is one, otherwise the process-specific keyring if there is one,
55 otherwise the session keyring if there is one, otherwise the UID-specific
58 This setting is inherited across
63 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
66 .BR keyctl_set_reqkey_keyring ()
71 will be returned and errno will have been set to an appropriate error.
72 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
79 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
81 This is a library function that can be found in
85 should be specified to the linker.
86 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""