summaryrefslogtreecommitdiff
path: root/keyutils.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-03-11 01:00:29 +0000
committerDavid Howells <dhowells@redhat.com>2011-03-11 01:00:29 +0000
commite911809f13477b5b2df2a79ff535859a0a054f8b (patch)
tree7f0ea3fa6e03711e58a7a9be2f43f9fcf6a437cd /keyutils.c
parentd09ebcd5440332ccdc88192a02082d9f333244cf (diff)
downloadkeyutils-e911809f13477b5b2df2a79ff535859a0a054f8b.tar.gz
Lib: Support keyctl(KEYCTL_INSTANTIATE_IOV)
Support the keyctl op to instantiate a key from payload data in an iovec rather than a flat buffer, providing it as keyctl_instantiate_iov(). Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'keyutils.c')
-rw-r--r--keyutils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/keyutils.c b/keyutils.c
index c20c707..d6c9bd0 100644
--- a/keyutils.c
+++ b/keyutils.c
@@ -181,6 +181,14 @@ long keyctl_reject(key_serial_t id, unsigned timeout, unsigned error,
return keyctl(KEYCTL_REJECT, id, timeout, error, ringid);
}
+long keyctl_instantiate_iov(key_serial_t id,
+ const struct iovec *payload_iov,
+ unsigned ioc,
+ key_serial_t ringid)
+{
+ return keyctl(KEYCTL_INSTANTIATE_IOV, id, payload_iov, ioc, ringid);
+}
+
/*****************************************************************************/
/*
* fetch key description into an allocated buffer