/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/ |
H A D | sandbox.c | 83 int ngroups, ret; local 111 ngroups = sysconf(_SC_NGROUPS_MAX); 112 if (ngroups == -1) { 115 ngroups = NGROUPS_MAX; 117 ngroups++; /* For base gid. */ 118 groups = malloc(sizeof(groups[0]) * ngroups); 121 ngroups); 124 if (getgrouplist(user, pw->pw_gid, groups, &ngroups) == -1) { 163 if (setgroups(ngroups, groups) == -1) { 211 PJDLOG_VERIFY(getgroups(0, NULL) == ngroups); [all...] |
/freebsd-9.3-release/contrib/openpam/lib/libpam/ |
H A D | openpam_borrow_cred.c | 91 scred->ngroups = r;
|
H A D | openpam_cred.h | 49 int ngroups; member in struct:pam_saved_cred
|
H A D | openpam_restore_cred.c | 77 setgroups(scred->ngroups, scred->groups) < 0 ||
|
/freebsd-9.3-release/contrib/pf/authpf/ |
H A D | authpf.c | 504 int gl_init = 0, ngroups = NGROUPS + 1; local 541 pw->pw_gid, groups, &ngroups); 545 for ( cnt = 0; cnt < ngroups; cnt++) {
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | conf.c | 2897 setgroups(ngroups, grouplist) 2898 int ngroups;
|
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-icmp6.c | 845 u_int group, nsrcs, ngroups; local 855 ngroups = EXTRACT_16BITS(&icp->icmp6_data16[1]); 856 printf(", %d group record(s)", ngroups); 860 for (i = 0; i < ngroups; i++) {
|
H A D | print-igmp.c | 156 u_int group, nsrcs, ngroups; local 165 ngroups = EXTRACT_16BITS(&bp[6]); 166 (void)printf(", %d group record(s)", ngroups); 170 for (i=0; i<ngroups; i++) {
|
H A D | print-pim.c | 126 int maddrlen, addrlen, ngroups, njoin, nprune; local 169 ngroups = bp[3]; 172 while (ngroups--) {
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | groupaccess.c | 42 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-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | getgrouplist.c | 49 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;
|
H A D | port-aix.c | 436 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;
|
/freebsd-9.3-release/lib/libc/gen/ |
H A D | initgroups.c | 51 int ngroups, ret; local 63 ngroups = (int)ngroups_max; 64 getgrouplist(uname, agroup, groups, &ngroups); 65 ret = setgroups(ngroups, groups);
|
/freebsd-9.3-release/lib/libc/rpc/ |
H A D | netnamer.c | 156 gid_t ngroups = 0; local 166 if (ngroups == NGRPS) { 175 for (j = 0; j < ngroups; j++) 181 groups[ngroups++] = grp->gr_gid; 186 return (ngroups);
|
/freebsd-9.3-release/sys/dev/iwn/ |
H A D | if_iwn.c | 4644 cmd.ngroups = 1; 4696 cmd.ngroups = 1; 5928 cmd.ngroups = 1; 5944 cmd.ngroups = 1;
|
H A D | if_iwnreg.h | 974 uint8_t ngroups; member in struct:iwn_phy_calib 981 uint8_t ngroups; member in struct:iwn5000_phy_calib_crystal 991 uint8_t ngroups; member in struct:iwn5000_phy_calib_temp_offset 1002 uint8_t ngroups; member in struct:iwn_phy_calib_gain
|
/freebsd-9.3-release/sys/fs/ext2fs/ |
H A D | ext2_vfsops.c | 774 int i, ngroups; local 792 for (i = 0, ngroups = 0; i < fs->e2fs_gcount; i++) { 794 ngroups++; 797 ngroups = fs->e2fs_gcount; 803 overhead += ngroups * (1 /* superblock */ + ngdb);
|
/freebsd-9.3-release/sys/kern/ |
H A D | kern_mib.c | 130 SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RDTUN|CTLFLAG_CAPRD,
|
H A D | kern_prot.c | 1921 int ngroups; local 1927 ngroups = MIN(cr->cr_ngroups, XU_NGROUPS); 1928 xcr->cr_ngroups = ngroups; 1930 ngroups * sizeof(*cr->cr_groups));
|
H A D | uipc_usrreq.c | 1971 int ngroups; local 1974 ngroups = MIN(td->td_ucred->cr_ngroups, CMGROUP_MAX); 1975 m = sbcreatecontrol(NULL, SOCKCREDSIZE(ngroups), SCM_CREDS, SOL_SOCKET); 1984 sc->sc_ngroups = ngroups;
|
/freebsd-9.3-release/sys/rpc/ |
H A D | authunix_prot.c | 67 uint32_t ngroups, i; local 104 ngroups = cred->cr_ngroups - 1; 105 if (ngroups > NGRPS) 106 ngroups = NGRPS; 109 if (!xdr_uint32_t(xdrs, &ngroups)) 111 for (i = 0; i < ngroups; i++) { 122 if (ngroups + 1 > ngroups_max + 1) 125 cred->cr_ngroups = ngroups + 1;
|
/freebsd-9.3-release/sys/security/mac/ |
H A D | mac_cred.c | 271 mac_cred_check_setgroups(struct ucred *cred, int ngroups, gid_t *gidset) argument 275 MAC_POLICY_CHECK_NOSLEEP(cred_check_setgroups, cred, ngroups, gidset); 276 MAC_CHECK_PROBE3(cred_check_setgroups, error, cred, ngroups, gidset);
|
H A D | mac_framework.h | 117 int mac_cred_check_setgroups(struct ucred *cred, int ngroups,
|
H A D | mac_policy.h | 145 typedef int (*mpo_cred_check_setgroups_t)(struct ucred *cred, int ngroups,
|
/freebsd-9.3-release/sys/security/mac_stub/ |
H A D | mac_stub.c | 247 stub_cred_check_setgroups(struct ucred *cred, int ngroups, argument
|