Section: Linux Key Management Calls (3) Updated: 4 May 2006 Local index
keyctl_chown - Change the ownership of a key
long keyctl_chown(key_serial_t key, uid_t uid, gid_t gid);
changes the user and group ownership details of a key.
A setting of
will cause that setting to be ignored.
A process that does not have the
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
permission on a key to be able change its ownership.
On error, the value
will be returned and errno will have been set to an appropriate error.
The specified key does not exist.
The specified key has expired.
The specified key has been revoked.
Changing the UID to the one specified would run that UID out of quota.
The key exists, but does not grant
permission to the calling process.
This is a library function that can be found in
should be specified to the linker.
- RETURN VALUE
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:48:55 GMT, April 16, 2011