keyctl_link() creates a link from keyring to key, displacing any link
to another key of the same type and description in that keyring if
keyctl_unlink() removes the link from keyring to key if it exists.
The caller must have write permission on a keyring to be able create
or remove links in it.
The caller must have link permission on a key to be able to create a
link to it.
ENOKEY The key or the keyring specified are invalid.
The key or the keyring specified have expired.
The key or the keyring specified have been revoked.
EACCES The keyring exists, but is not writable by the calling
For keyctl_link() only:
ENOMEM Insufficient memory to expand the keyring
EDQUOT Expanding the keyring would exceed the keyring owner's quota.
EACCES The key exists, but is not linkable by the calling process.
This page is part of the keyutils (key management utilities) project.
Information about the project can be found at [unknown -- if you
know, please contact email@example.com] If you have a bug report for
this manual page, send it to firstname.lastname@example.org. This page was
obtained from the project's upstream Git repository
on 2017-03-13. If you discover any rendering problems in this HTML
version of the page, or you believe there is a better or more up-to-
date source for the page, or you have corrections or improvements to
the information in this COLOPHON (which is not part of the original
manual page), send a mail to email@example.com
Linux 4 May 2006 KEYCTL_LINK(3)