/dragonfly/crypto/openssh/ |
H A D | groupaccess.c | 42 static int ngroups; variable 56 if (ngroups > 0) in ga_init() 59 ngroups = NGROUPS_MAX; in ga_init() 68 groups_bygid = xreallocarray(groups_bygid, ngroups, in ga_init() 73 for (i = 0, j = 0; i < ngroups; i++) in ga_init() 77 return (ngroups = j); in ga_init() 89 for (i = 0; i < ngroups; i++) in ga_match() 105 for (i = 0; i < ngroups; i++) { in ga_match_pattern_list() 127 if (ngroups > 0) { in ga_free() 128 for (i = 0; i < ngroups; i++) in ga_free() [all …]
|
H A D | sftp-server.c | 1729 u_int n, nusers = 0, ngroups = 0; in process_extended_get_users_groups_by_id() local 1761 verbose("users-groups-by-id: %u users, %u groups", nusers, ngroups); in process_extended_get_users_groups_by_id()
|
/dragonfly/usr.bin/id/ |
H A D | id.c | 210 int cnt, id, eid, lastid, ngroups; in current() local 232 if ((ngroups = getgroups(NGROUPS, groups))) { in current() 251 int cnt, ngroups; in user() local 259 ngroups = NGROUPS + 1; in user() 260 getgrouplist(pw->pw_name, gid, groups, &ngroups); in user() 262 for (lastgid = -1, cnt = 0; cnt < ngroups; ++cnt) { in user() 278 int cnt, id, lastid, ngroups; in group() local 283 ngroups = NGROUPS + 1; in group() 284 getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups); in group() 287 ngroups = getgroups(NGROUPS, groups + 1) + 1; in group() [all …]
|
/dragonfly/lib/libc/gen/ |
H A D | initgroups.c | 41 int ngroups; in initgroups() local 48 ngroups = NGROUPS + 1; in initgroups() 49 getgrouplist(uname, agroup, groups, &ngroups); in initgroups() 50 return (setgroups(ngroups, groups)); in initgroups()
|
/dragonfly/usr.bin/quota/ |
H A D | quota.c | 99 int ngroups; in main() local 135 if (ngroups < 0) in main() 138 for (i = 0; i < ngroups; i++) in main() 227 int ngroups; in showgid() local 237 ngroups = getgroups(NGROUPS, gidset); in showgid() 238 if (ngroups < 0) { in showgid() 243 for (i = 0; i < ngroups; i++) in showgid() 246 if (i >= ngroups && getuid() != 0) { in showgid() 261 int ngroups; in showgrpname() local 271 if (ngroups < 0) { in showgrpname() [all …]
|
/dragonfly/usr.sbin/chown/ |
H A D | chown.c | 264 static int ngroups = -1; in chownerr() local 276 if (gid != (gid_t)(-1) && ngroups == -1 && in chownerr() 281 ngroups = getgroups(ngroups_max, groups); in chownerr() 282 while (--ngroups >= 0 && gid != groups[ngroups]); in chownerr() 284 if (ngroups < 0) { in chownerr()
|
/dragonfly/lib/libc/rpc/ |
H A D | netnamer.c | 153 gid_t ngroups = 0; in _getgroups() local 163 if (ngroups == NGROUPS) { in _getgroups() 172 for (j = 0; j < ngroups; j++) in _getgroups() 178 groups[ngroups++] = grp->gr_gid; in _getgroups() 183 return (ngroups); in _getgroups()
|
/dragonfly/usr.sbin/jail/ |
H A D | jail.c | 45 ngroups = NGROUPS; \ 46 if (getgrouplist(username, pwd->pw_gid, groups, &ngroups) != 0) \ 59 int ch, ngroups, i, iflag, lflag, uflag, Uflag; in main() local 147 if (setgroups(ngroups, groups) != 0) in main()
|
/dragonfly/contrib/tcpdump/ |
H A D | print-igmp.c | 134 u_int group, nsrcs, ngroups; in print_igmpv3_report() local 142 ngroups = GET_BE_U_2(bp + 6); in print_igmpv3_report() 143 ND_PRINT(", %u group record(s)", ngroups); in print_igmpv3_report() 147 for (i=0; i<ngroups; i++) { in print_igmpv3_report()
|
H A D | print-pim.c | 164 u_int ngroups, njoin, nprune; in pimv1_join_prune_print() local 210 ngroups = GET_U_1(bp + 3); in pimv1_join_prune_print() 213 while (ngroups != 0) { in pimv1_join_prune_print() 254 ngroups--; in pimv1_join_prune_print()
|
H A D | print-icmp6.c | 1572 u_int group, nsrcs, ngroups; in mldv2_report_print() local 1581 ngroups = GET_BE_U_2(icp->icmp6_data16[1]); in mldv2_report_print() 1582 ND_PRINT(", %u group record(s)", ngroups); in mldv2_report_print() 1586 for (i = 0; i < ngroups; i++) { in mldv2_report_print()
|
/dragonfly/crypto/libressl/ssl/ |
H A D | t1_lib.c | 540 const int *groups, size_t ngroups) in tls1_set_groups() argument 545 if ((group_ids = calloc(ngroups, sizeof(uint16_t))) == NULL) in tls1_set_groups() 548 for (i = 0; i < ngroups; i++) { in tls1_set_groups() 557 *out_group_ids_len = ngroups; in tls1_set_groups() 567 size_t ngroups = 0; in tls1_set_group_list() local 584 if ((new_group_ids = reallocarray(group_ids, ngroups + 1, in tls1_set_group_list() 589 if (!tls1_ec_nid2group_id(nid, &group_ids[ngroups])) in tls1_set_group_list() 592 ngroups++; in tls1_set_group_list() 598 *out_group_ids_len = ngroups; in tls1_set_group_list()
|
H A D | ssl_locl.h | 1525 const int *groups, size_t ngroups);
|
/dragonfly/usr.sbin/lpr/lpc/ |
H A D | lpc.c | 343 static int ngroups = 0; in ingroup() local 353 ngroups = getgroups(NGROUPS, groups); in ingroup() 354 if (ngroups < 0) in ingroup() 358 for (i = 0; i < ngroups; i++) in ingroup()
|
/dragonfly/contrib/openpam/lib/libpam/ |
H A D | openpam_cred.h | 49 int ngroups; member
|
H A D | openpam_restore_cred.c | 77 setgroups(scred->ngroups, scred->groups) < 0 || in openpam_restore_cred()
|
H A D | openpam_borrow_cred.c | 91 scred->ngroups = r; in openpam_borrow_cred()
|
/dragonfly/sys/vfs/ext2fs/ |
H A D | ext2_vfsops.c | 1093 int i, ngroups; in ext2_statfs() local 1111 for (i = 0, ngroups = 0; i < fs->e2fs_gcount; i++) { in ext2_statfs() 1113 ngroups++; in ext2_statfs() 1116 ngroups = fs->e2fs_gcount; in ext2_statfs() 1122 overhead += ngroups * (1 /* superblock */ + ngdb); in ext2_statfs() 1145 int i, ngroups; in ext2_statvfs() local 1163 for (i = 0, ngroups = 0; i < fs->e2fs_gcount; i++) { in ext2_statvfs() 1165 ngroups++; in ext2_statvfs() 1168 ngroups = fs->e2fs_gcount; in ext2_statvfs() 1174 overhead += ngroups * (1 /* superblock */ + ngdb); in ext2_statvfs()
|
/dragonfly/sbin/svc/ |
H A D | execute.c | 835 if (cmd->ngroups) { in setup_gid() 836 if (setgroups(cmd->ngroups, cmd->groups) < 0) { in setup_gid() 838 for (i = 0; i < cmd->ngroups; ++i) { in setup_gid() 857 cmd->ngroups == 0 && in setup_uid()
|
H A D | svc.h | 99 int ngroups; member
|
H A D | svc.c | 204 cmd->ngroups = i; in process_cmd()
|
/dragonfly/sys/dev/netif/iwn/ |
H A D | if_iwnreg.h | 1171 uint8_t ngroups; member 1178 uint8_t ngroups; member 1188 uint8_t ngroups; member 1199 uint8_t ngroups; member 1210 uint8_t ngroups; member
|
H A D | if_iwn.c | 6056 cmd.ngroups = 1; 6112 cmd.ngroups = 1; 7764 cmd.ngroups = 1; 7780 cmd.ngroups = 1; 7798 cmd.ngroups = 1;
|
/dragonfly/sys/kern/ |
H A D | kern_mib.c | 120 SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RD,
|
/dragonfly/sbin/mountd/ |
H A D | mountd.c | 2303 int ngroups; in parsecred() local 2330 ngroups = NGROUPS + 1; in parsecred() 2331 if (getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups)) in parsecred() 2336 cr->cr_ngroups = ngroups - 1; in parsecred() 2338 for (cnt = 2; cnt < ngroups; cnt++) in parsecred()
|