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_UPDATE 3 "4 May 2006" Linux "Linux Key Management Calls"
11 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
13 keyctl_update \- Update a key
14 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
17 .B #include <keyutils.h>
19 .BI "long keyctl_update(key_serial_t " key ", const void *" payload ,
20 .BI "size_t " plen ");"
21 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
24 updates the payload of a key if the key type permits it.
28 permission on a key to be able update it.
33 specify the data for the new payload.
37 may be zero if the key type permits that. The key type may reject the data if
38 it's in the wrong format or in some other way invalid.
39 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
47 will be returned and errno will have been set to an appropriate error.
48 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
52 The key specified is invalid.
55 The key specified has expired.
58 The key specified had been revoked.
61 The payload data was invalid.
64 Insufficient memory to store the new payload.
67 The key quota for this user would be exceeded by increasing the size of the
68 key to accommodate the new payload.
71 The key exists, but is not
73 by the calling process.
76 The key type does not support the update operation on its keys.
77 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
79 This is a library function that can be found in
83 should be specified to the linker.
84 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""