Skip to content
Snippets Groups Projects
Select Git revision
3 results Searching

key.h

Blame
    • David Howells's avatar
      b2a4df20
      KEYS: Expand the capacity of a keyring · b2a4df20
      David Howells authored
      
      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: default avatarDavid Howells <dhowells@redhat.com>
      b2a4df20
      History
      KEYS: Expand the capacity of a keyring
      David Howells authored
      
      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: default avatarDavid Howells <dhowells@redhat.com>
    xfrm.h 33.48 KiB