| /src/lib/libc/gen/ |
| initgroups.c | 57 gid_t groups_list[NGROUPS]; 58 int ngroups; local in function:__weak_alias 64 ngroups = NGROUPS; 65 if (getgrouplist(uname, agroup, groups, &ngroups) == -1) { 66 int maxgroups = ngroups; 70 if (getgrouplist(uname, agroup, groups, &ngroups) == -1) 71 ngroups = maxgroups; 73 rval = setgroups(ngroups, groups); 76 if (ng > 0 && ng < ngroups) [all...] |
| /src/sbin/mount_portal/ |
| portald.h | 59 gid_t pcr_groups[NGROUPS]; /* From cred */
|
| /src/usr.bin/quota/ |
| quota.c | 113 int ngroups; local in function:main 114 gid_t mygid, gidset[NGROUPS]; 166 ngroups = getgroups(NGROUPS, gidset); 167 if (ngroups < 0) 170 for (i = 0; i < ngroups; i++) 258 int ngroups; local in function:showgid 259 gid_t mygid, gidset[NGROUPS]; 268 ngroups = getgroups(NGROUPS, gidset) 292 int ngroups; local in function:showgrpname [all...] |
| /src/sys/miscfs/umapfs/ |
| umap_subr.c | 140 gid_t groups[NGROUPS]; 141 uint16_t ngroups; local in function:umap_mapids 176 ngroups = kauth_cred_ngroups(credp); 177 for (i = 0; i < ngroups; i++) { 188 kauth_cred_setgroups(credp, groups, ngroups, -1, UIO_SYSSPACE);
|
| /src/usr.sbin/lpr/lpc/ |
| lpc.c | 322 static gid_t groups[NGROUPS]; 323 static int ngroups; local in function:ingroup 333 ngroups = getgroups(NGROUPS, groups); 334 if (ngroups < 0) 338 for (i = 0; i < ngroups; i++)
|
| /src/usr.sbin/ypserv/mknetid/ |
| mknetid.c | 61 int gid[NGROUPS]; /* additional gids */ 205 if (u->gid_count < NGROUPS)
|
| /src/lib/libc/rpc/ |
| auth_unix.c | 193 static int maxgrplist = NGROUPS; 198 if (num < NGROUPS)
|
| svc_vc.c | 486 crmsgsize = CMSG_SPACE(SOCKCREDSIZE(NGROUPS));
|
| /src/sys/sys/ |
| param.h | 122 #define NGROUPS NGROUPS_MAX /* max number groups */
|
| kauth.h | 90 gid_t cr_groups[NGROUPS]; /* group memberships */
|
| sysctl.h | 324 gid_t cr_groups[NGROUPS]; /* groups */
|
| /src/regress/sys/kern/unfdpass/ |
| unfdpass.c | 66 #define CRCM_DATASIZE (SOCKCREDSIZE(NGROUPS))
|
| /src/sys/nfs/ |
| nfs_socket.c | 1110 size_t grbuf_size = uimin(len, NGROUPS) * sizeof(gid_t); 1114 if (i < NGROUPS) /* XXX elad */ 1120 uimin(len, NGROUPS), -1, UIO_SYSSPACE);
|
| /src/sys/kern/ |
| kern_auth.c | 633 cred->cr_ngroups = uimin(uuc->cr_ngroups, NGROUPS); 651 ng = uimin(cred->cr_ngroups, NGROUPS);
|
| /src/usr.sbin/mountd/ |
| mountd.c | 2072 int ngroups; local in function:parsecred 2073 gid_t usergroups[NGROUPS + 1]; 2097 ngroups = NGROUPS + 1; 2098 if (getgrouplist(pw->pw_name, pw->pw_gid, usergroups, &ngroups)) 2103 cr->cr_ngroups = ngroups - 1; 2105 for (cnt = 1; cnt < ngroups; cnt++) 2122 while (names != NULL && *names != '\0' && cr->cr_ngroups < NGROUPS) { 2134 if (names != NULL && *names != '\0' && cr->cr_ngroups == NGROUPS)
|
| /src/lib/libp2k/ |
| p2k.c | 102 gid_t groups[NGROUPS]; 105 short ngroups = __arraycount(groups); local in function:cred_create 115 puffs_cred_getgroups(pcr, groups, &ngroups); 117 /* LINTED: ngroups is ok */ 118 return rump_pub_cred_create(uid, gid, ngroups, groups);
|
| /src/lib/libkvm/ |
| kvm_proc.c | 158 gid_t cr_groups[NGROUPS]; /* group memberships */
|