Home
last modified time | relevance | path

Searched refs:groups (Results 1 – 25 of 112) sorted by relevance

12345

/titanic_41/usr/src/lib/libast/common/features/
H A Dbotch.c48 gid_t groups[32 * sizeof(int) / sizeof(gid_t)]; in main() local
51 if ((n = getgroups((sizeof(groups) / sizeof(groups[0])) / r, groups)) > 0) in main()
54 groups[i] = ((gid_t)0); in main()
55 if (getgroups(i, groups) != i) in main()
57 if (groups[i] != ((gid_t)0)) in main()
59 groups[i] = ((gid_t)-1); in main()
60 if (getgroups(i, groups) != i) in main()
62 if (groups[i] != ((gid_t)-1)) in main()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dinitgroups.c48 gid_t *groups; in initgroups() local
64 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) { in initgroups()
68 groups[0] = agroup; in initgroups()
70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max, in initgroups()
75 free(groups); in initgroups()
79 retsave = setgroups(ngroups, groups); in initgroups()
82 free(groups); in initgroups()
/titanic_41/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c74 struct groupnode *groups; in export() local
97 groups = NULL; in export()
98 grtail = &groups; in export()
156 tail = newexport(sh->sh_path, groups, tail); in export()
172 struct groupnode *groups, *tmpgroups; in freeexports() local
176 groups = ex->ex_groups; in freeexports()
177 while (groups) { in freeexports()
178 tmpgroups = groups->gr_next; in freeexports()
179 free(groups->gr_name); in freeexports()
180 free(groups); in freeexports()
[all …]
/titanic_41/usr/src/cmd/groups/
H A Dgroups.c107 static gid_t *groups = NULL; in showgroups() local
111 if (groups == NULL) { in showgroups()
112 if ((groups = (gid_t *)calloc((uint_t)ngroups_max, in showgroups()
120 groups[0] = pw->pw_gid; in showgroups()
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); in showgroups()
124 if (gr = getgrgid(groups[0])) in showgroups()
130 if ((gr = getgrgid(groups[i]))) in showgroups()
133 (void) printf(" %d", (int)groups[i]); in showgroups()
/titanic_41/usr/src/cmd/ypcmd/revnetgroup/
H A Drevnetgroup.c77 stringlist groups; member
154 stringlist groups; in dumptable() local
161 for (groups = entry->groups; groups; in dumptable()
162 groups = groups->next) { in dumptable()
163 fputs(groups->str, stdout); in dumptable()
164 if (groups->next) { in dumptable()
217 new->groups = MALLOC(stringnode); in newentry()
218 new->groups->str = group; in newentry()
219 new->groups->next = NULL; in newentry()
230 for (cur = grlist->groups; cur; prev = cur, cur = cur->next) { in appendgroup()
/titanic_41/usr/src/cmd/grpck/
H A Dgrpck.c81 struct group *groups; member
143 t->groups = NULL; in main()
145 t->groups = (struct group *) in main()
147 t->groups->grp = pwp->pw_gid; in main()
148 t->groups->cnt = 1; in main()
149 t->groups->nxt = NULL; in main()
325 t->groups = NULL; in main()
327 t->groups = (struct group *) in main()
329 t->groups->grp = pwp->pw_gid; in main()
330 t->groups->cnt = 1; in main()
[all …]
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dgetgrouplist.c50 getgrouplist(uname, agroup, groups, grpcnt) in getgrouplist() argument
53 register gid_t *groups;
72 groups[ngroups++] = agroup;
82 if (groups[i] == grp->gr_gid)
92 groups[ngroups++] = grp->gr_gid;
/titanic_41/usr/src/ucbcmd/groups/
H A Dgroups.c38 gid_t *groups; in main() local
41 groups = alloca(maxgrp * sizeof (gid_t)); in main()
49 ngroups = getgroups(maxgrp, groups); in main()
56 gr = getgrgid(groups[i]); in main()
58 (void) printf("%s%u", sep, groups[i]); in main()
/titanic_41/usr/src/lib/nsswitch/ldap/common/
H A Dgetprojent.c76 ns_ldap_attr_t *users, *groups; in _nss_ldap_proj2str() local
136 groups = __ns_ldap_getAttrStruct(result->entry, _PROJ_GROUPS); in _nss_ldap_proj2str()
137 if (!(groups == NULL || groups->attrvalue == NULL)) { in _nss_ldap_proj2str()
139 for (i = 0; i < groups->value_count; i++) { in _nss_ldap_proj2str()
140 if (groups->attrvalue[i] == NULL) { in _nss_ldap_proj2str()
146 groups->attrvalue[i]); in _nss_ldap_proj2str()
150 groups->attrvalue[i]); in _nss_ldap_proj2str()
/titanic_41/usr/src/uts/common/rpc/sec/
H A Dauthu_prot.c118 caddr_t groups; in xdr_authkern() local
132 groups = (caddr_t)crgetgroups(cr); in xdr_authkern()
138 xdr_array(xdrs, &groups, &len, NGRPS, sizeof (gid_t), xdr_gid_t)) in xdr_authkern()
153 caddr_t groups; in xdr_authloopback() local
163 groups = (caddr_t)crgetgroups(cr); in xdr_authloopback()
169 xdr_array(xdrs, &groups, &len, NGROUPS_UMAX, sizeof (gid_t), in xdr_authloopback()
/titanic_41/usr/src/cmd/pools/poold/com/sun/solaris/service/locality/
H A DLocalityDomain.java232 Set groups = getGroups(); in calcMaxLatency() local
233 Iterator outer = groups.iterator(); in calcMaxLatency()
235 Iterator inner = groups.iterator(); in calcMaxLatency()
261 Set groups = new HashSet(); in getGroups() local
262 groups.add(root); in getGroups()
263 getGroups(root, groups); in getGroups()
264 return (groups); in getGroups()
H A DLocalityGroup.java156 Set groups = new HashSet(); in countForeignGroups() local
167 groups.contains(other) == false) in countForeignGroups()
168 groups.add(other); in countForeignGroups()
172 return (groups.size()); in countForeignGroups()
/titanic_41/usr/src/uts/common/syscall/
H A Dgroups.c59 const gid_t *groups; in setgroups() local
66 groups = crgetggroups(grps); in setgroups()
69 if (!VALID_GID(groups[i], zone)) { in setgroups()
73 if (groups[i] > MAXUID) in setgroups()
77 ksl = kcrsid_gidstosids(zone, n, (gid_t *)groups); in setgroups()
/titanic_41/usr/src/lib/libcmd/common/
H A Did.c216 static gid_t* groups; in getids() local
232 if ((maxgroups = getgroups(0, groups)) <= 0) in getids()
234 if (!(groups = newof(0, gid_t, maxgroups + 1, 0))) in getids()
237 ngroups = getgroups(maxgroups, groups); in getids()
240 for (k = 0; k < j && groups[k] != groups[i]; k++); in getids()
241 if (k >= j) groups[j++] = groups[i]; in getids()
286 if (ngroups == 1 && groups[0] == group) in getids()
341 group = groups[i]; in getids()
397 group = groups[i]; in getids()
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dutil.c67 gid_t basegid, gid_t *groups, int *ngroups) in make_group_list() argument
83 groups[ng++] = basegid; in make_group_list()
86 groups[ng++] = basegid; in make_group_list()
98 groups[ng++] = grp->gr_gid; in make_group_list()
/titanic_41/usr/src/cmd/ypcmd/mknetid/
H A Dmknetid.c67 int groups[NUMGIDS]; member
88 static struct group_list *groups[GRPTABSIZE]; /* group table */ variable
439 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
446 g->groups[0] = gid;
447 g->next = groups[val];
448 groups[val] = g;
451 if (g->groups[i] == gid) {
460 g->groups[g->group_len++] = gid;
477 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
482 if (gid != g->groups[i]) {
[all …]
/titanic_41/usr/src/lib/libast/common/comp/
H A Deaccess.c107 static gid_t* groups;
113 if (!(groups = newof(0, gid_t, ngroups + 1, 0)))
116 ngroups = getgroups(ngroups, groups);
120 if (groups[n] == st.st_gid)
/titanic_41/usr/src/cmd/ptools/pcred/
H A Dpcred.c60 static gid_t *groups; variable
151 (void) memcpy(pcr->pr_groups, groups, ngrp * sizeof (gid_t)); in credupdate()
296 if ((groups = malloc(ngroups_max * sizeof (gid_t))) == NULL) { in initcred()
312 groups[0] = gid; in initcred()
314 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1); in initcred()
347 groups[ngrp++] = str2gid(cgrp); in initcred()
/titanic_41/usr/src/lib/libslp/javalib/com/sun/slp/
H A DListener.java61 private Vector groups = new Vector(); // Multicast groups monitored. field in Listener
150 listener.groups.addElement(maddr); in addListenerToMulticastGroup()
179 listener.groups); in refreshSocketOnInterface()
268 groups); in run()
/titanic_41/usr/src/head/rpcsvc/
H A Dmount.x160 typedef struct groupnode *groups; typedef
163 groups gr_next;
172 groups ex_groups;
/titanic_41/usr/src/cmd/perl/contrib/Sun/Solaris/Project/
H A DProject.pm157 my ($projname, $projid, $comment, $users, $groups, $attributes);
279 my ($projname, $projid, $comment, $users, $groups, $attributes);
285 ($projname, $projid, $comment, $users, $groups, $attributes) =
295 ($projname, $projid, $comment, $users, $groups, $attributes) =
329 if (defined($groups)) {
330 $projent->{'groups'} = $groups;
331 ($ret, $ref) = projent_parse_groups($groups, $flags);
474 my ($groups, $flags) = @_;
486 @grouplist = split(/$pattern/, $groups);
1286 my ($groups, $flags) = @_;
[all …]
/titanic_41/usr/src/uts/common/sys/fs/
H A Dufs_acl.h80 ufs_ic_acl_t *groups; /* list of groups */ member
108 #define agroups s_a.groups
115 #define dgroups s_d.groups
/titanic_41/usr/src/cmd/oamuser/user/
H A DMakefile49 ADD_OBJ= useradd.o homedir.o groups.o call_pass.o \
54 groups.o messages.o funcs.o proj.o
56 MOD_OBJ= usermod.o movedir.o groups.o rmfiles.o \
/titanic_41/usr/src/lib/nsswitch/nis/common/
H A Dgetnetgrent.c336 top_down(struct nis_netgr_be *be, const char **groups, int ngroups, in top_down() argument
355 ngt_insert(ngt, *groups, strlen(*groups)); in top_down()
356 groups++; in top_down()
780 if (inlist(ia->groups.argc, ia->groups.argv, val)) {
843 res = top_down(be, (const char **)ia->groups.argv, ia->groups.argc,
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dsuid_exec.c314 gid_t *groups=0; in eaccess() local
319 if((maxgroups=getgroups(0,groups)) < 0) in eaccess()
325 groups = (gid_t*)malloc((maxgroups+1)*sizeof(gid_t)); in eaccess()
326 n = getgroups(maxgroups,groups); in eaccess()
329 if(groups[n] == statb.st_gid) in eaccess()

12345