keyctl_chown() changes the user and group ownership details of a key.
A setting of -1 on either uid or gid will cause that setting to be
A process that does not have the SysAdmin capability may not change a
key's UID or set the key's GID to a value that does not match the
process's GID or one of its group list.
The caller must have setattr permission on a key to be able change
ENOKEY The specified key does not exist.
The specified key has expired.
The specified key has been revoked.
EDQUOT Changing the UID to the one specified would run that UID out
EACCES The key exists, but does not grant setattr permission to the
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 2016-10-04. 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_CHOWN(3)