mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic kern.ngroups+1. kern.ngroups can range from NGROUPS_MAX=1023 to somewhere in the neighborhood of INT_MAX/4 one a system with sufficent RAM and memory bandwidth. Given that the Windows group limit is 1024, this range should be sufficient for most applications r202342: Only allocate the space we need before calling kern_getgroups instead of allocating what ever the user asks for up to "ngroups_max + 1". On systems with large values of kern.ngroups this will be more efficient. The now redundant check that the array is large enough in kern_getgroups() is deliberate to allow this change to be merged to stable/8 without breaking potential third party consumers of the API. |
||
|---|---|---|
| .. | ||
| imgact_svr4.c | ||
| Makefile | ||
| svr4.h | ||
| svr4_acl.h | ||
| svr4_dirent.h | ||
| svr4_errno.h | ||
| svr4_exec.h | ||
| svr4_fcntl.c | ||
| svr4_fcntl.h | ||
| svr4_filio.c | ||
| svr4_filio.h | ||
| svr4_fuser.h | ||
| svr4_hrt.h | ||
| svr4_ioctl.c | ||
| svr4_ioctl.h | ||
| svr4_ipc.c | ||
| svr4_ipc.h | ||
| svr4_misc.c | ||
| svr4_mman.h | ||
| svr4_proto.h | ||
| svr4_resource.c | ||
| svr4_resource.h | ||
| svr4_siginfo.h | ||
| svr4_signal.c | ||
| svr4_signal.h | ||
| svr4_socket.c | ||
| svr4_socket.h | ||
| svr4_sockio.c | ||
| svr4_sockio.h | ||
| svr4_sockmod.h | ||
| svr4_stat.c | ||
| svr4_stat.h | ||
| svr4_statvfs.h | ||
| svr4_stream.c | ||
| svr4_stropts.h | ||
| svr4_syscall.h | ||
| svr4_syscallnames.c | ||
| svr4_sysconfig.h | ||
| svr4_sysent.c | ||
| svr4_systeminfo.h | ||
| svr4_sysvec.c | ||
| svr4_termios.c | ||
| svr4_termios.h | ||
| svr4_time.h | ||
| svr4_timod.h | ||
| svr4_types.h | ||
| svr4_ucontext.h | ||
| svr4_ulimit.h | ||
| svr4_ustat.h | ||
| svr4_util.h | ||
| svr4_utsname.h | ||
| svr4_wait.h | ||
| syscalls.conf | ||
| syscalls.master | ||