K 10 svn:author V 6 brooks K 8 svn:date V 27 2009-05-28T21:41:01.231956Z K 7 svn:log V 846 More work toward increasing NGROUPS_MAX and/or allowing kern.ngroups to be increased at boot time. * Replace the embedded cr_groups[NGROUPS] member of struct cred with a pointer to malloc'd storage and a cr_agroups value which tracks the number of allocated group slots. When more space is required crextend() is used to add more space. The new crcopysafe() function calls crextend as needed when saving a copy of a credential from a process before modification. * Introduce a new #define, XU_NGROUPS which is always 16 and is used to set the array size in struct xucred and will be used other places where the 16 group limit needs to be preserved. * Replace the embedded ki_groups[KI_NGROUPS] entry in struct kinfo_proc with a pointer and adapt libkvm accordingly. Submitted by: Isilon Systems (Matthew Fleming) END