KEYS: Add an iovec version of KEYCTL_INSTANTIATE
authorDavid Howells <dhowells@redhat.com>
Mon, 7 Mar 2011 15:06:20 +0000 (15:06 +0000)
committerJames Morris <jmorris@namei.org>
Tue, 8 Mar 2011 00:17:22 +0000 (11:17 +1100)
commitee009e4a0d4555ed522a631bae9896399674f064
treeee309fb4a98d9e7792cec99935c2d33652b3f440
parentfdd1b94581782a2ddf9124414e5b7a5f48ce2f9c
KEYS: Add an iovec version of KEYCTL_INSTANTIATE

Add a keyctl op (KEYCTL_INSTANTIATE_IOV) that is like KEYCTL_INSTANTIATE, but
takes an iovec array and concatenates the data in-kernel into one buffer.
Since the KEYCTL_INSTANTIATE copies the data anyway, this isn't too much of a
problem.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Documentation/keys.txt
arch/x86/Kconfig
include/linux/keyctl.h
security/keys/compat.c
security/keys/internal.h
security/keys/keyctl.c