2 .\" Copyright (C) 2010 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_SESSION_TO_PARENT 3 "26 Jun 2010" Linux "Linux Key Management Calls"
11 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
13 keyctl_session_to_parent \- Set the parent process's session keyring
14 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
17 .B #include <keyutils.h>
19 .BI "long keyctl_session_to_parent();"
20 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
22 .BR keyctl_session_to_parent ()
23 changes the session keyring to which the calling process's parent subscribes
24 to be the that of the calling process.
28 permission available to the calling process, the parent process must have the
29 same UIDs/GIDs as the calling process, and the LSM must not reject the
30 replacement. Furthermore, this may not be used to affect init or a kernel
33 Note that the replacement will not take immediate effect upon the parent
34 process, but will rather be deferred to the next time it returns to userspace
36 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
39 .BR keyctl_session_to_parent ()
40 returns 0. On error, the value
42 will be returned and errno will have been set to an appropriate error.
43 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
47 Insufficient memory to create a key.
50 The credentials of the parent don't match those of the caller.
53 The named keyring exists, but is not
55 by the calling process.
56 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
58 This is a library function that can be found in
62 should be specified to the linker.
63 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""