Skip to content

Commit 738c5d1

Browse files
Steve DicksonJames Morris
authored andcommitted
KEYS: Increase root_maxkeys and root_maxbytes sizes
Now that NFS client uses the kernel key ring facility to store the NFSv4 id/gid mappings, the defaults for root_maxkeys and root_maxbytes need to be substantially increased. These values have been soak tested: https://bugzilla.redhat.com/show_bug.cgi?id=1033708#c73 Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
1 parent 7505cea commit 738c5d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎security/keys/key.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ DEFINE_SPINLOCK(key_serial_lock);
2727
struct rb_root key_user_tree; /* tree of quota records indexed by UID */
2828
DEFINE_SPINLOCK(key_user_lock);
2929

30-
unsigned int key_quota_root_maxkeys = 200; /* root's key count quota */
31-
unsigned int key_quota_root_maxbytes = 20000; /* root's key space quota */
30+
unsigned int key_quota_root_maxkeys = 1000000; /* root's key count quota */
31+
unsigned int key_quota_root_maxbytes = 25000000; /* root's key space quota */
3232
unsigned int key_quota_maxkeys = 200; /* general key count quota */
3333
unsigned int key_quota_maxbytes = 20000; /* general key space quota */
3434

0 commit comments

Comments
 (0)