]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: Add a key type op to permit the key description to be vetted
authorDavid Howells <dhowells@redhat.com>
Mon, 7 Mar 2011 15:05:59 +0000 (15:05 +0000)
committerJames Morris <jmorris@namei.org>
Tue, 8 Mar 2011 00:17:15 +0000 (11:17 +1100)
commita03fa38e1b03cbd40051e008d8ee987475289073
tree0f58a92c2616b3663f88935290d32a4c90d57025
parent007de75d3c1645ea0ef362f6901b62de0128da3b
KEYS: Add a key type op to permit the key description to be vetted

Add a key type operation to permit the key type to vet the description of a new
key that key_alloc() is about to allocate.  The operation may reject the
description if it wishes with an error of its choosing.  If it does this, the
key will not be allocated.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Documentation/keys.txt
include/linux/key-type.h
net/rxrpc/ar-key.c
security/keys/key.c