2
.\" Copyright (C) 2006 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_CHOWN 3 "4 May 2006" Linux "Linux Key Management Calls"
11
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
13
keyctl_chown \- Change the ownership of a key
14
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
17
.B #include <keyutils.h>
19
.BI "long keyctl_chown(key_serial_t " key ", uid_t " uid ", gid_t " gid ");"
20
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
23
changes the user and group ownership details of a key.
31
will cause that setting to be ignored.
33
A process that does not have the
35
capability may not change a key's UID or set the key's GID to a value that
36
does not match the process's GID or one of its group list.
40
permission on a key to be able change its ownership.
41
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
49
will be returned and errno will have been set to an appropriate error.
50
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
54
The specified key does not exist.
57
The specified key has expired.
60
The specified key has been revoked.
63
Changing the UID to the one specified would run that UID out of quota.
66
The key exists, but does not grant
68
permission to the calling process.
69
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
71
This is a library function that can be found in
75
should be specified to the linker.
76
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""