|KEYCTL_SESSION_TO_PARENT(3)||Linux Key Management Calls||KEYCTL_SESSION_TO_PARENT(3)|
#include <keyutils.h> long keyctl_session_to_parent();
The keyring must have link permission available to the calling process, the parent process must have the same UIDs/GIDs as the calling process, and the LSM must not reject the replacement. Furthermore, this may not be used to affect init or a kernel thread.
Note that the replacement will not take immediate effect upon the parent process, but will rather be deferred to the next time it returns to userspace from kernel space.
- Insufficient memory to create a key.
- The credentials of the parent don't match those of the caller.
- The named keyring exists, but is not linkable by the calling process.
|20 Feb 2014||Linux|