KEYS: user: Use key preparsing
authorDavid Howells <dhowells@redhat.com>
Fri, 18 Jul 2014 17:56:35 +0000 (18:56 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 22 Jul 2014 20:46:17 +0000 (21:46 +0100)
commitf9167789df53f22af771fb6690a3d36aa21d74c5
treeb57ff2ec18945f20c113150c4d6d126812da7b8b
parent4d8c0250b841159b128785f7a7efbaff40cc8501
KEYS: user: Use key preparsing

Make use of key preparsing in user-defined and logon keys so that quota size
determination can take place prior to keyring locking when a key is being
added.

Also the idmapper key types need to change to match as they use the
user-defined key type routines.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Acked-by: Jeff Layton <jlayton@primarydata.com>
fs/nfs/idmap.c
include/keys/user-type.h
security/keys/user_defined.c