Rick Macklem 2ffad162f3 Modify mountd.c so that it does not always malloc 4K for the map credentials.
r362163 upgraded mountd so that it could handle MAX_NGROUPS
groups for the anonymous user credentials (the ones provided by
-maproot and -mapall exports options).
The problem is that this resulted in every export structure growing by
about 4Kbytes, because the cr_groups field went from 16->MAX_NGROUPS.

This patch fixes this by only including a small 32 element cr_groups in the
structure and then malloc()'ng cr_groups when a larger one is needed.
The value of SMALLNGROUPS is arbitrarily set to 32, assuming most users
used by -maproot or -mapall will be in <= 32 groups.

Reviewed by:	kib, freqlabs
Differential Revision:	https://reviews.freebsd.org/D26521
2020-10-10 00:01:40 +00:00
..
2020-02-19 12:49:49 +00:00
2018-08-11 13:23:09 +00:00
2020-05-21 01:55:35 +00:00
2020-09-17 18:06:57 +00:00
2020-05-01 01:31:19 +00:00
2020-07-08 03:57:47 +00:00
2020-06-22 07:46:24 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-09-15 17:13:29 +00:00
2020-03-30 03:26:52 +00:00
2020-10-09 14:03:45 +00:00
2020-09-24 19:12:03 +00:00
2019-12-04 16:56:11 +00:00
2019-02-04 21:28:25 +00:00
2020-10-09 14:03:45 +00:00
2020-08-25 02:21:27 +00:00
2020-04-10 23:10:28 +00:00
2020-10-09 14:03:45 +00:00
2018-05-28 09:41:44 +00:00
2019-05-04 02:09:30 +00:00
2020-10-09 19:12:44 +00:00
2018-10-22 02:34:10 +00:00
2020-06-16 19:21:28 +00:00
2018-05-19 20:57:22 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 14:03:45 +00:00
2020-08-17 10:25:02 +00:00
2020-09-01 15:52:18 +00:00
2020-10-09 14:03:45 +00:00
2020-09-09 00:39:47 +00:00
2018-06-17 17:31:16 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2019-12-11 17:37:53 +00:00
2020-06-24 02:08:08 +00:00
2019-03-05 02:53:41 +00:00
2020-08-25 16:09:23 +00:00
2020-02-19 12:49:49 +00:00
2020-06-23 10:56:15 +00:00
2020-08-21 09:48:00 +00:00
2019-04-22 17:52:46 +00:00
2020-03-23 14:44:23 +00:00
2019-12-11 17:37:53 +00:00
2020-10-09 14:03:45 +00:00
2020-08-24 18:17:13 +00:00
2020-03-31 16:47:15 +00:00
2019-11-21 01:24:49 +00:00
2020-09-11 13:28:37 +00:00
2020-04-06 23:16:05 +00:00
2020-10-09 19:12:44 +00:00
2020-07-14 05:33:23 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00