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_JOIN_SESSION_KEYRING 3 "4 May 2006" Linux "Linux Key Management Calls"
11 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
13 keyctl_join_session_keyring \- Join a different session keyring
14 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
17 .B #include <keyutils.h>
19 .BI "key_serial_t keyctl_join_session_keyring(const char *" name ");"
20 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
22 .BR keyctl_join_session_keyring ()
23 changes the session keyring to which a process is subscribed.
29 then a new anonymous keyring will be created, and the process will be
34 points to a string, then if a keyring of that name is available, the process
35 will attempt to subscribe to that keyring, giving an error if that is not
36 permitted; otherwise a new keyring of that name is created and attached as the
39 To attach to an extant named keyring, the keyring must have
41 permission available to the calling process.
42 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
45 .BR keyctl_join_session_keyring ()
46 returns the serial number of the key it found or created. On error, the value
48 will be returned and errno will have been set to an appropriate error.
49 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
53 Insufficient memory to create a key.
56 The key quota for this user would be exceeded by creating this key or linking
60 The named keyring exists, but is not
62 by the calling process.
63 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
65 This is a library function that can be found in
69 should be specified to the linker.
70 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""