Searched refs:groups (Results 1 - 25 of 74) sorted by relevance

123

/illumos-gate/usr/src/lib/libast/common/features/
H A Dbotch.c48 gid_t groups[32 * sizeof(int) / sizeof(gid_t)]; local
51 if ((n = getgroups((sizeof(groups) / sizeof(groups[0])) / r, groups)) > 0)
54 groups[i] = ((gid_t)0);
55 if (getgroups(i, groups) != i)
57 if (groups[i] != ((gid_t)0))
59 groups[i] = ((gid_t)-1);
60 if (getgroups(i, groups) != i)
62 if (groups[
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dinitgroups.c42 /* Private interface to the groups code in getgrnam.c */
48 gid_t *groups; local
58 * ngroups_max is the maximum number of supplemental groups per
59 * process. if no supplemental groups are allowed, we're done.
64 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) {
68 groups[0] = agroup;
70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max,
75 free(groups);
79 retsave = setgroups(ngroups, groups);
82 free(groups);
[all...]
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c43 * groups - show group memberships
71 "groups: could not get configuration info\n");
81 (void) fprintf(stderr, "groups: No passwd entry\n");
90 "groups: %s : No such user\n", *argv);
107 static gid_t *groups = NULL; local
111 if (groups == NULL) {
112 if ((groups = (gid_t *)calloc((uint_t)ngroups_max,
120 groups[0] = pw->pw_gid;
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1);
124 if (gr = getgrgid(groups[
[all...]
H A DMakefile26 PROG= groups
/illumos-gate/usr/src/ucbcmd/groups/
H A DMakefile27 PROG= groups
H A Dgroups.c17 * groups
38 gid_t *groups; local
41 groups = alloca(maxgrp * sizeof (gid_t));
49 ngroups = getgroups(maxgrp, groups);
51 (void) fprintf(stderr, "groups: could not find passwd entry\n");
56 gr = getgrgid(groups[i]);
58 (void) printf("%s%u", sep, groups[i]);
80 (void) fprintf(stderr, "groups: %s : No such user\n", user);
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c74 struct groupnode *groups; local
97 groups = NULL;
98 grtail = &groups;
108 * If export_to_everyone is 1, then groups should be NULL to
135 * Just concatenate all the hostnames/groups
156 tail = newexport(sh->sh_path, groups, tail);
172 struct groupnode *groups, *tmpgroups; local
176 groups = ex->ex_groups;
177 while (groups) {
178 tmpgroups = groups
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dutil.c63 gid_t basegid, gid_t *groups, int *ngroups)
74 * the first element of groups is the effective gid
79 groups[ng++] = basegid;
82 groups[ng++] = basegid;
84 * Scan the group file to find additional groups.
94 groups[ng++] = grp->gr_gid;
62 make_group_list(struct irs_gr *this, const char *name, gid_t basegid, gid_t *groups, int *ngroups) argument
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Drevnetgroup.c49 * comma-separated, newline-terminated list of groups to which the
52 * Exception: Groups to which everyone belongs (universal groups) will
53 * not be included in the list. The universal groups will be listed under
56 * Thus to find out all the groups that user "foo" of domain "bar" is in,
57 * lookup the groups under foo.bar, foo.*, *.bar and *.*.
73 /* Stores a list of (name,list-of-groups) */
77 stringlist groups; member in struct:groupentrynode
154 stringlist groups; local
161 for (groups = entry->groups; group
[all...]
/illumos-gate/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)
/illumos-gate/usr/src/uts/common/syscall/
H A Dgroups.c59 const gid_t *groups; local
66 groups = crgetggroups(grps);
69 if (!VALID_GID(groups[i], zone)) {
73 if (groups[i] > MAXUID)
77 ksl = kcrsid_gidstosids(zone, n, (gid_t *)groups);
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/locality/
H A DLocalityDomain.java158 * Return the groups in this domain to which the supplied cpus
159 * belong, excluding the supplied set of groups.
161 * @param exclude Set of groups to be excluded.
224 * Return the maximum latency between the groups in this
232 Set groups = getGroups();
233 Iterator outer = groups.iterator();
235 Iterator inner = groups.iterator();
249 * groups in this domain.
261 Set groups = new HashSet();
262 groups
[all...]
H A DLocalityGroup.java63 * The child groups of this instance.
109 * Return the set of child locality groups for this instance.
156 Set groups = new HashSet();
167 groups.contains(other) == false)
168 groups.add(other);
172 return (groups.size());
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c51 #define NGROUPS "Maximum groups exceeded for logname "
78 struct group *groups; member in struct:node
140 t->groups = NULL;
142 t->groups = (struct group *)
144 t->groups->grp = pwp->pw_gid;
145 t->groups->cnt = 1;
146 t->groups->nxt = NULL;
212 ngroups++; /* Increment number of groups found */
322 t->groups = NULL;
324 t->groups
[all...]
/illumos-gate/usr/src/head/rpcsvc/
H A Dmount.x160 typedef struct groupnode *groups;
163 groups gr_next;
172 groups ex_groups;
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthu_prot.c118 caddr_t groups; local
132 groups = (caddr_t)crgetgroups(cr);
138 xdr_array(xdrs, &groups, &len, NGRPS, sizeof (gid_t), xdr_gid_t))
153 caddr_t groups; local
163 groups = (caddr_t)crgetgroups(cr);
169 xdr_array(xdrs, &groups, &len, NGROUPS_UMAX, sizeof (gid_t),
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DListener.java61 private Vector groups = new Vector(); // Multicast groups monitored. field in class:Listener
148 // Record the groups monitored.
150 listener.groups.addElement(maddr);
179 listener.groups);
268 groups);
/illumos-gate/usr/src/lib/libcmd/common/
H A Did.c38 "groups the current process belongs to will also be written.]"
49 "[G:groups?Writes only the supplementary group IDs.]"
50 "[s:fair-share?Writes fair share scheduler IDs and groups on systems that "
216 static gid_t* groups; local
223 * get supplemental groups if required
232 if ((maxgroups = getgroups(0, groups)) <= 0)
234 if (!(groups = newof(0, gid_t, maxgroups + 1, 0)))
237 ngroups = getgroups(maxgroups, groups);
240 for (k = 0; k < j && groups[k] != groups[
[all...]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetprojent.c76 ns_ldap_attr_t *users, *groups; local
136 groups = __ns_ldap_getAttrStruct(result->entry, _PROJ_GROUPS);
137 if (!(groups == NULL || groups->attrvalue == NULL)) {
139 for (i = 0; i < groups->value_count; i++) {
140 if (groups->attrvalue[i] == NULL) {
146 groups->attrvalue[i]);
150 groups->attrvalue[i]);
/illumos-gate/usr/src/cmd/oamuser/user/
H A DMakefile48 ADD_OBJ= useradd.o homedir.o groups.o call_pass.o \
53 groups.o messages.o funcs.o proj.o
55 MOD_OBJ= usermod.o movedir.o groups.o homedir.o \
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dmknetid.c63 * Store username and groups to which they belong
68 int groups[NUMGIDS]; member in struct:group_list
89 static struct group_list *groups[GRPTABSIZE]; /* group table */ variable in typeref:struct:group_list
205 * Parse the groups file
428 * Add gid to the list of a user's groups
440 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
447 g->groups[0] = gid;
448 g->next = groups[val];
449 groups[val] = g;
452 if (g->groups[
[all...]
/illumos-gate/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));
249 "\t%s [-u user] [-g group] [-G groups] pid ...\n"
296 if ((groups = malloc(ngroups_max * sizeof (gid_t))) == NULL) {
312 groups[0] = gid;
314 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1);
343 (void) fprintf(stderr, "%s: Too many groups\n",
347 groups[ngrp++] = str2gid(cgrp);
/illumos-gate/usr/src/lib/libscf/common/
H A Dhighlevel.c380 struct group_desc groups[] = { local
392 groups[0].delta = &flags->ss_default;
393 groups[1].delta = &flags->ss_lower;
394 groups[2].delta = &flags->ss_upper;
396 for (g = groups; g->delta != NULL; g++) {
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_acl.h80 ufs_ic_acl_t *groups; /* list of groups */ member in struct:ic_acl
108 #define agroups s_a.groups
115 #define dgroups s_d.groups
/illumos-gate/usr/src/cmd/mailx/hdr/
H A Dglob.h70 extern struct grouphead *groups[]; /* Pointer to active groups */

Completed in 70 milliseconds

123