KEYS: Make request key instantiate the per-user keyrings
authorDavid Howells <dhowells@redhat.com>
Mon, 10 Nov 2008 19:00:05 +0000 (19:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Nov 2008 17:56:04 +0000 (09:56 -0800)
commit8d5dc6f7b2da3b6b108171b8051f18b6abc3ba1c
tree403a921f6a213305da0cb21ce7ac2cb28b43c29e
parent5ce4391e9762079aa31f2b01a6eca3d9c3a39dc1
KEYS: Make request key instantiate the per-user keyrings

commit 1f8f5cf6e4f038552a3e47b66085452c08556d71 upstream

Make request_key() instantiate the per-user keyrings so that it doesn't oops
if it needs to get hold of the user session keyring because there isn't a
session keyring in place.

Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Steve French <smfrench@gmail.com>
Tested-by: Rutger Nijlunsing <rutger.nijlunsing@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/keys/internal.h
security/keys/process_keys.c
security/keys/request_key.c