forked from Minki/linux
b2a4df200d
Expand the capacity of a keyring to be able to hold a lot more keys by using the previously added associative array implementation. Currently the maximum capacity is: (PAGE_SIZE - sizeof(header)) / sizeof(struct key *) which, on a 64-bit system, is a little more 500. However, since this is being used for the NFS uid mapper, we need more than that. The new implementation gives us effectively unlimited capacity. With some alterations, the keyutils testsuite runs successfully to completion after this patch is applied. The alterations are because (a) keyrings that are simply added to no longer appear ordered and (b) some of the errors have changed a bit. Signed-off-by: David Howells <dhowells@redhat.com>
19 lines
544 B
C
19 lines
544 B
C
/* Keyring key type
|
|
*
|
|
* Copyright (C) 2008, 2013 Red Hat, Inc. All Rights Reserved.
|
|
* Written by David Howells (dhowells@redhat.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef _KEYS_KEYRING_TYPE_H
|
|
#define _KEYS_KEYRING_TYPE_H
|
|
|
|
#include <linux/key.h>
|
|
#include <linux/assoc_array.h>
|
|
|
|
#endif /* _KEYS_KEYRING_TYPE_H */
|