Searched refs:ngroups (Results 1 - 25 of 35) sorted by path

12

/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c83 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 Dopenpam_borrow_cred.c91 scred->ngroups = r;
H A Dopenpam_cred.h49 int ngroups; member in struct:pam_saved_cred
H A Dopenpam_restore_cred.c77 setgroups(scred->ngroups, scred->groups) < 0 ||
/freebsd-9.3-release/contrib/pf/authpf/
H A Dauthpf.c504 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 Dconf.c2897 setgroups(ngroups, grouplist)
2898 int ngroups;
/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-icmp6.c845 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 Dprint-igmp.c156 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 Dprint-pim.c126 int maddrlen, addrlen, ngroups, njoin, nprune; local
169 ngroups = bp[3];
172 while (ngroups--) {
/freebsd-9.3-release/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-9.3-release/crypto/openssh/openbsd-compat/
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;
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;
/freebsd-9.3-release/lib/libc/gen/
H A Dinitgroups.c51 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 Dnetnamer.c156 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 Dif_iwn.c4644 cmd.ngroups = 1;
4696 cmd.ngroups = 1;
5928 cmd.ngroups = 1;
5944 cmd.ngroups = 1;
H A Dif_iwnreg.h974 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 Dext2_vfsops.c774 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 Dkern_mib.c130 SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RDTUN|CTLFLAG_CAPRD,
H A Dkern_prot.c1921 int ngroups; local
1927 ngroups = MIN(cr->cr_ngroups, XU_NGROUPS);
1928 xcr->cr_ngroups = ngroups;
1930 ngroups * sizeof(*cr->cr_groups));
H A Duipc_usrreq.c1971 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 Dauthunix_prot.c67 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 Dmac_cred.c271 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 Dmac_framework.h117 int mac_cred_check_setgroups(struct ucred *cred, int ngroups,
H A Dmac_policy.h145 typedef int (*mpo_cred_check_setgroups_t)(struct ucred *cred, int ngroups,
/freebsd-9.3-release/sys/security/mac_stub/
H A Dmac_stub.c247 stub_cred_check_setgroups(struct ucred *cred, int ngroups, argument

Completed in 302 milliseconds

12