KEYS: Provide a generic instantiation function
authorDavid Howells <dhowells@redhat.com>
Fri, 18 Jul 2014 17:56:34 +0000 (18:56 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 18 Jul 2014 17:56:34 +0000 (18:56 +0100)
commit6a09d17bb66a533c165be81e8a4c3557f68e1a3b
treed56b7ce27813ea9ab20ae1f22236af76b5390d6a
parent32c2e6752ff0f48fe03b9e1c7c64bde580a840d2
KEYS: Provide a generic instantiation function

Provide a generic instantiation function for key types that use the preparse
hook.  This makes it easier to prereserve key quota before keyrings get locked
to retain the new key.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Acked-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Sage Weil <sage@redhat.com>
crypto/asymmetric_keys/asymmetric_type.c
include/linux/key-type.h
security/keys/key.c