summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/setgroups.c
AgeCommit message (Collapse)Author
2005-12-28make sure we handle the (malloc(0)==NULL) case as Aubrey points out via the ↵Mike Frysinger
e-mail list
2005-12-27tweak prototypes to match the exported versionsMike Frysinger
2005-12-27Aubrey writes:Mike Frysinger
When I mounted nfs on my target, the kernel crashed. And I found it was caused by stack overflow. When I digged into it. And I found not only "setgroups.c" but "getgroups.c" have the matrix (__kernel_gid_t kernel_groups[n]) on the stack which can be very large because "n" can be assigned to NGROUPS_MAX. And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h" #define NGROUPS_MAX 65536 /* supplemental group IDs are available */ I also changed it to do malloc.
2005-12-07Hide morePeter S. Mazinger
2005-11-29Hiding againPeter S. Mazinger
2005-01-05fix eriks e-mail addressMike Frysinger
2004-01-21Split up syscalls.c, since it had grown to be quite large and ugly.Eric Andersen
-Erik