Searched refs:ngroups (Results 1 - 25 of 41) sorted by last modified time

12

/freebsd-11-stable/lib/libpam/modules/pam_login_access/
H A Dlogin_access.c184 int i, ret, ngroups = NGROUPS; local
196 if ((grouplist = calloc(ngroups, sizeof(gid_t))) == NULL) {
201 if (getgrouplist(username, passwd->pw_gid, grouplist, &ngroups) != 0)
203 for (i = 0; i < ngroups; i++)
/freebsd-11-stable/contrib/sendmail/src/
H A Dconf.c2966 setgroups(ngroups, grouplist)
2967 int ngroups;
/freebsd-11-stable/sys/kern/
H A Dkern_mib.c125 SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RDTUN |
H A Duipc_usrreq.c2120 int ngroups; local
2123 ngroups = MIN(td->td_ucred->cr_ngroups, CMGROUP_MAX);
2124 m = sbcreatecontrol(NULL, SOCKCREDSIZE(ngroups), SCM_CREDS, SOL_SOCKET);
2133 sc->sc_ngroups = ngroups;
H A Dkern_prot.c1938 int ngroups; local
1944 ngroups = MIN(cr->cr_ngroups, XU_NGROUPS);
1945 xcr->cr_ngroups = ngroups;
1947 ngroups * sizeof(*cr->cr_groups));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc6963 int *ngroups) {
6966 COMMON_INTERCEPTOR_ENTER(ctx, getgrouplist, name, basegid, groups, ngroups);
6969 if (ngroups)
6970 COMMON_INTERCEPTOR_READ_RANGE(ctx, ngroups, sizeof(*ngroups));
6971 res = REAL(getgrouplist)(name, basegid, groups, ngroups);
6972 if (!res && groups && ngroups) {
6973 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, groups, sizeof(*groups) * (*ngroups));
6974 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ngroups, sizeof(*ngroups));
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-icmp6.c1415 u_int group, nsrcs, ngroups; local
1425 ngroups = EXTRACT_16BITS(&icp->icmp6_data16[1]);
1426 ND_PRINT((ndo,", %d group record(s)", ngroups));
1430 for (i = 0; i < ngroups; i++) {
H A Dprint-pim.c146 int ngroups, njoin, nprune; local
195 ngroups = bp[3];
198 while (ngroups--) {
H A Dprint-igmp.c153 u_int group, nsrcs, ngroups; local
162 ngroups = EXTRACT_16BITS(&bp[6]);
163 ND_PRINT((ndo, ", %d group record(s)", ngroups));
167 for (i=0; i<ngroups; i++) {
/freebsd-11-stable/usr.bin/quota/
H A Dquota.c113 int ngroups; local
156 ngroups = getgroups(NGROUPS, gidset);
157 if (ngroups < 0)
160 for (i = 0; i < ngroups; i++)
/freebsd-11-stable/sys/dev/iwn/
H A Dif_iwn.c5933 cmd.ngroups = 1;
5989 cmd.ngroups = 1;
7633 cmd.ngroups = 1;
7649 cmd.ngroups = 1;
7667 cmd.ngroups = 1;
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_vfsops.c813 int i, ngroups; local
831 for (i = 0, ngroups = 0; i < fs->e2fs_gcount; i++) {
833 ngroups++;
836 ngroups = fs->e2fs_gcount;
842 overhead += ngroups * (1 /* superblock */ + ngdb);
/freebsd-11-stable/contrib/openpam/lib/libpam/
H A Dopenpam_restore_cred.c77 setgroups(scred->ngroups, scred->groups) < 0 ||
H A Dopenpam_cred.h49 int ngroups; member in struct:pam_saved_cred
H A Dopenpam_borrow_cred.c91 scred->ngroups = r;
/freebsd-11-stable/usr.sbin/lpr/lpc/
H A Dlpc.c354 static int ngroups = 0; local
368 ngroups = getgroups(ngroups_max, groups);
369 if (ngroups < 0)
373 for (i = 0; i < ngroups; i++)
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c81 int ngroups, ret; local
109 ngroups = sysconf(_SC_NGROUPS_MAX);
110 if (ngroups == -1) {
113 ngroups = NGROUPS_MAX;
115 ngroups++; /* For base gid. */
116 groups = malloc(sizeof(groups[0]) * ngroups);
119 ngroups);
122 if (getgrouplist(user, pw->pw_gid, groups, &ngroups) == -1) {
161 if (setgroups(ngroups, groups) == -1) {
209 PJDLOG_VERIFY(getgroups(0, NULL) == ngroups);
[all...]
/freebsd-11-stable/usr.sbin/rpc.lockd/
H A Dkern.c237 int ngroups; local
239 ngroups = xucred->cr_ngroups - 1;
240 if (ngroups > NGRPS)
241 ngroups = NGRPS;
247 ngroups,
/freebsd-11-stable/usr.bin/procstat/
H A Dprocstat_cred.c50 unsigned int i, ngroups; local
78 groups = procstat_getgroups(procstat, kipp, &ngroups);
80 ngroups = kipp->ki_ngroups;
84 for (i = 0; i < ngroups; i++)
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dport-aix.c436 int ret = 0, ngroups = 0, maxgroups; local
451 groups[ngroups++] = pgid;
456 if (ngroups >= maxgroups || l == LONG_MIN || l == LONG_MAX) {
463 groups[ngroups++] = gid;
467 *grpcnt = ngroups;
H A Dgetgrouplist.c49 int i, ngroups; local
54 ngroups = 0;
60 if (ngroups >= maxgroups) {
61 *grpcnt = ngroups;
64 groups[ngroups++] = agroup;
73 for (bail = 0, i = 0; bail == 0 && i < ngroups; i++)
80 if (ngroups >= maxgroups) {
84 groups[ngroups++] = grp->gr_gid;
91 *grpcnt = ngroups;
/freebsd-11-stable/lib/libcasper/services/cap_grp/tests/
H A Dgrp_test.c1206 size_t ngroups)
1220 for (i = 0; i < ngroups; i++) {
1226 if (i == ngroups)
1229 if (got != ngroups)
1239 for (i = 0; i < ngroups; i++) {
1245 if (i == ngroups)
1248 if (got != ngroups)
1251 for (i = 0; i < ngroups; i++) {
1257 for (i = 0; i < ngroups; i++) {
1263 for (i = 0; i < ngroups;
1205 runtest_groups(cap_channel_t *capgrp, const char **names, const gid_t *gids, size_t ngroups) argument
[all...]
/freebsd-11-stable/crypto/openssh/
H A Dgroupaccess.c42 static int ngroups; variable
56 if (ngroups > 0)
59 ngroups = NGROUPS_MAX;
61 ngroups = MAX(NGROUPS_MAX, sysconf(_SC_NGROUPS_MAX));
64 groups_bygid = xcalloc(ngroups, sizeof(*groups_bygid));
65 groups_byname = xcalloc(ngroups, sizeof(*groups_byname));
67 if (getgrouplist(user, base, groups_bygid, &ngroups) == -1)
69 for (i = 0, j = 0; i < ngroups; i++)
73 return (ngroups = j);
85 for (i = 0; i < ngroups;
[all...]
/freebsd-11-stable/contrib/pjdfstest/
H A Dpjdfstest.c1000 long ngroups; local
1004 ngroups = sysconf(_SC_NGROUPS_MAX);
1005 assert(ngroups > 0);
1006 gidset = malloc(sizeof(*gidset) * ngroups);
1010 if (i >= ngroups) {
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c105 getgrouplist(const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument
110 if (*ngroups >= 1) {
115 ret = (*ngroups >= cnt) ? 0 : -1;
116 *ngroups = cnt;
118 if (*ngroups >= 1) {
123 if (*ngroups >= 2) {
128 ret = (*ngroups >= cnt) ? 0 : -1;
129 *ngroups = cnt;

Completed in 317 milliseconds

12