HomeSort by: relevance | last modified time | path
    Searched defs:grp (Results 1 - 25 of 78) sorted by relevancy

1 2 3 4

  /src/lib/libpam/modules/pam_ftpusers/
pam_ftpusers.c 45 #include <grp.h>
65 struct group *grp, grres; local in function:pam_sm_acct_mgmt
106 (void)getgrnam_r(name, &grres, grbuf, sizeof(grbuf), &grp);
108 if (grp == NULL)
110 for (mem = grp->gr_mem; mem && *mem && !found; ++mem)
pam_ftpusers.c 45 #include <grp.h>
65 struct group *grp, grres; local in function:pam_sm_acct_mgmt
106 (void)getgrnam_r(name, &grres, grbuf, sizeof(grbuf), &grp);
108 if (grp == NULL)
110 for (mem = grp->gr_mem; mem && *mem && !found; ++mem)
  /src/lib/libutil/
pty.c 48 #include <grp.h>
71 struct group grs, *grp; local in function:openpty
92 (void)getgrnam_r("tty", &grs, grbuf, sizeof(grbuf), &grp);
93 if (grp != NULL) {
94 ttygid = grp->gr_gid;
pty.c 48 #include <grp.h>
71 struct group grs, *grp; local in function:openpty
92 (void)getgrnam_r("tty", &grs, grbuf, sizeof(grbuf), &grp);
93 if (grp != NULL) {
94 ttygid = grp->gr_gid;
  /src/sbin/mount_ptyfs/
mount_ptyfs.c 96 #include <grp.h>
135 struct group *grp; local in function:getgrp
144 grp = getgrnam(name);
146 grp = getgrgid((gid_t)l);
148 if (grp == NULL)
151 return grp->gr_gid;
mount_ptyfs.c 96 #include <grp.h>
135 struct group *grp; local in function:getgrp
144 grp = getgrnam(name);
146 grp = getgrgid((gid_t)l);
148 if (grp == NULL)
151 return grp->gr_gid;
  /src/usr.sbin/sdpd/
main.c 40 #include <grp.h>
186 struct group *grp = getgrnam(group); local in function:drop_root
188 if (grp == NULL) {
193 gid = grp->gr_gid;
245 "\t-G grp allow privileges to group\n"
246 "\t-g grp specify group\n"
main.c 40 #include <grp.h>
186 struct group *grp = getgrnam(group); local in function:drop_root
188 if (grp == NULL) {
193 gid = grp->gr_gid;
245 "\t-G grp allow privileges to group\n"
246 "\t-g grp specify group\n"
server.c 71 #include <grp.h>
584 struct group *grp; local in function:server_auth_check
596 grp = getgrnam(srv->sgroup);
597 if (grp == NULL) {
603 if (cred->sc_gid == grp->gr_gid || cred->sc_egid == grp->gr_gid)
614 if (cred->sc_groups[n] == grp->gr_gid)
server.c 71 #include <grp.h>
584 struct group *grp; local in function:server_auth_check
596 grp = getgrnam(srv->sgroup);
597 if (grp == NULL) {
603 if (cred->sc_gid == grp->gr_gid || cred->sc_egid == grp->gr_gid)
614 if (cred->sc_groups[n] == grp->gr_gid)
  /src/sbin/fsdb/
fsdbutil.c 43 #include <grp.h>
93 struct group *grp; local in function:printstat
179 if ((grp = getgrgid(gid)) != NULL)
180 printf("GRP=%s ", grp->gr_name);
fsdbutil.c 43 #include <grp.h>
93 struct group *grp; local in function:printstat
179 if ((grp = getgrgid(gid)) != NULL)
180 printf("GRP=%s ", grp->gr_name);
  /src/lib/libpam/modules/pam_group/
pam_group.c 46 #include <grp.h>
74 struct group *grp, grres; local in function:pam_sm_authenticate
101 if (getgrnam_r(group, &grres, grbuf, sizeof(grbuf), &grp) != 0 ||
102 grp == NULL || grp->gr_mem == NULL)
106 if (*grp->gr_mem == NULL)
110 if (pwd->pw_gid == grp->gr_gid)
112 for (list = grp->gr_mem; *list != NULL; ++list)
pam_group.c 46 #include <grp.h>
74 struct group *grp, grres; local in function:pam_sm_authenticate
101 if (getgrnam_r(group, &grres, grbuf, sizeof(grbuf), &grp) != 0 ||
102 grp == NULL || grp->gr_mem == NULL)
106 if (*grp->gr_mem == NULL)
110 if (pwd->pw_gid == grp->gr_gid)
112 for (list = grp->gr_mem; *list != NULL; ++list)
  /src/usr.bin/newgrp/
grutil.c 37 #include <grp.h>
209 struct group *grp; local in function:newgrp
218 grp = getgrnam(gname);
221 if (grp == NULL) {
226 grp = getgrgid(gid);
230 if (grp == NULL) {
235 if (ruid == 0 || pwd->pw_gid == grp->gr_gid)
236 return grp->gr_gid;
241 if (groups[i] == grp->gr_gid) {
243 return grp->gr_gid
    [all...]
grutil.c 37 #include <grp.h>
209 struct group *grp; local in function:newgrp
218 grp = getgrnam(gname);
221 if (grp == NULL) {
226 grp = getgrgid(gid);
230 if (grp == NULL) {
235 if (ruid == 0 || pwd->pw_gid == grp->gr_gid)
236 return grp->gr_gid;
241 if (groups[i] == grp->gr_gid) {
243 return grp->gr_gid
    [all...]
  /src/lib/libc/posix1e/
acl_to_text_nfs4.c 43 #include <grp.h>
58 struct group *grp; local in function:format_who
95 grp = getgrgid(*id);
97 grp = NULL;
98 if (grp == NULL)
101 snprintf(str, size, "group:%s", grp->gr_name);
acl_to_text_nfs4.c 43 #include <grp.h>
58 struct group *grp; local in function:format_who
95 grp = getgrgid(*id);
97 grp = NULL;
98 if (grp == NULL)
101 snprintf(str, size, "group:%s", grp->gr_name);
  /src/distrib/utils/libhack/
getgrent.c 87 #include <grp.h>
120 getgrnam_r(const char *name, struct group *grp, char *buffer,
214 struct group *grp; local in function:getgrouplist
235 while ((grp = getgrent()) != NULL) {
236 if (grp->gr_gid == agroup)
238 for (i = 0; grp->gr_mem[i]; i++) {
239 if (strcmp(grp->gr_mem[i], uname) != 0)
242 if (grp->gr_gid == groups[i])
246 groups[ngroups] = grp->gr_gid;
getgrent.c 87 #include <grp.h>
120 getgrnam_r(const char *name, struct group *grp, char *buffer,
214 struct group *grp; local in function:getgrouplist
235 while ((grp = getgrent()) != NULL) {
236 if (grp->gr_gid == agroup)
238 for (i = 0; grp->gr_mem[i]; i++) {
239 if (strcmp(grp->gr_mem[i], uname) != 0)
242 if (grp->gr_gid == groups[i])
246 groups[ngroups] = grp->gr_gid;
  /src/lib/libc/gen/
getgroupmembership.c 48 #include <grp.h>
110 struct group grp; local in function:_files_getgroupmembership
123 while (__grscan_files(&rv, &grp, grpbuf, sizeof(grpbuf), &state,
126 for (i = 0; grp.gr_mem[i]; i++) {
127 if (strcmp(grp.gr_mem[i], uname) != 0)
129 if (! __gr_addgid(grp.gr_gid, groups, maxgrp, groupc))
153 struct group grp; local in function:_dns_getgroupmembership
182 while (__grscan_dns(&rv, &grp, grpbuf, sizeof(grpbuf), &state,
185 for (i = 0; grp.gr_mem[i]; i++) {
186 if (strcmp(grp.gr_mem[i], uname) != 0
246 struct group grp; local in function:_nis_getgroupmembership
329 struct group grp; local in function:_compat_getgroupmembership
    [all...]
getgroupmembership.c 48 #include <grp.h>
110 struct group grp; local in function:_files_getgroupmembership
123 while (__grscan_files(&rv, &grp, grpbuf, sizeof(grpbuf), &state,
126 for (i = 0; grp.gr_mem[i]; i++) {
127 if (strcmp(grp.gr_mem[i], uname) != 0)
129 if (! __gr_addgid(grp.gr_gid, groups, maxgrp, groupc))
153 struct group grp; local in function:_dns_getgroupmembership
182 while (__grscan_dns(&rv, &grp, grpbuf, sizeof(grpbuf), &state,
185 for (i = 0; grp.gr_mem[i]; i++) {
186 if (strcmp(grp.gr_mem[i], uname) != 0
246 struct group grp; local in function:_nis_getgroupmembership
329 struct group grp; local in function:_compat_getgroupmembership
    [all...]
  /src/usr.bin/wall/
wall.c 57 #include <grp.h>
160 struct group *grp; local in function:addgroup
163 grp = getgrnam(name);
164 if ((grp = getgrnam(name)) == NULL)
166 for (i = 0; grp->gr_mem[i]; i++)
172 g->gid = grp->gr_gid;
177 for (i = 0; grp->gr_mem[i] != NULL; i++) {
178 g->mem[i] = strdup(grp->gr_mem[i]);
wall.c 57 #include <grp.h>
160 struct group *grp; local in function:addgroup
163 grp = getgrnam(name);
164 if ((grp = getgrnam(name)) == NULL)
166 for (i = 0; grp->gr_mem[i]; i++)
172 g->gid = grp->gr_gid;
177 for (i = 0; grp->gr_mem[i] != NULL; i++) {
178 g->mem[i] = strdup(grp->gr_mem[i]);
  /src/usr.sbin/ypserv/revnetgroup/
parse_netgroup.c 185 struct netgrp *grp; local in function:parse_netgrp
216 grp = (struct netgrp *)malloc(sizeof (struct netgrp));
217 memset((char *)grp, 0, sizeof (struct netgrp));
218 grp->ng_next = grouphead.gr;
219 grouphead.gr = grp;
238 grp->ng_str[strpos] = (char *)
240 memmove(grp->ng_str[strpos],
250 grp->ng_str[strpos] = NULL;
263 grp->ng_str[NG_HOST] == NULL ? "" :
264 grp->ng_str[NG_HOST]
    [all...]

Completed in 33 milliseconds

1 2 3 4