/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | krbfileio.c | 73 gid_t gid; local 76 gid = getgid(); 78 fchown(fd, uid, gid);
|
H A D | safechown.c | 23 safechown(const char *src, uid_t uid, gid_t gid, int mode) argument 57 if (fchown(fd, uid, gid)) {
|
/osnet-11/usr/src/lib/libast/common/string/ |
H A D | fmtgid.c | 27 * cached gid number -> name 56 * return gid name given gid number 60 fmtgid(int gid) argument 76 else if (ip = (Id_t*)dtmatch(dict, &gid)) 78 if (gr = getgrgid(gid)) 86 else if (gid == 0) 90 name = fmtbuf(z = sizeof(gid) * 3 + 1); 91 sfsprintf(name, z, "%I*d", sizeof(gid), gid); [all...] |
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | chown.c | 35 fchownat(int fd, const char *name, uid_t uid, gid_t gid, int flags) argument 37 return (syscall(SYS_fchownat, fd, name, uid, gid, flags)); 42 chown(const char *name, uid_t uid, gid_t gid) argument 44 return (fchownat(AT_FDCWD, name, uid, gid, 0)); 49 lchown(const char *name, uid_t uid, gid_t gid) argument 51 return (fchownat(AT_FDCWD, name, uid, gid, AT_SYMLINK_NOFOLLOW)); 56 fchown(int filedes, uid_t uid, gid_t gid) argument 58 return (fchownat(filedes, NULL, uid, gid, 0));
|
/osnet-11/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 175 _create_daemon_lock(const char *name, uid_t uid, gid_t gid) argument 183 ret = fchown(fd, uid, gid);
|
/osnet-11/usr/src/lib/libidmap/common/ |
H A D | idmap_api_nfsv4.c | 75 * Get gid given SID. 78 idmap_nfsv4_getgidbysid(const char *sid, int flag, gid_t *gid) argument 91 rc = idmap_cache_lookup_gidbywinname(sid, NULL, gid); 100 &is_user, &is_wuser, gid, NULL, &direction, NULL); 103 idmap_cache_add_winname2gid(sid, NULL, *gid, direction); 202 * Get winname given gid 205 idmap_nfsv4_getwinnamebygid(gid_t gid, int flag, char **name) argument 207 return (idmap_nfsv4_getwinnamebypid(gid, 0, flag, name));
|
H A D | idmap_impl.h | 65 gid_t *gid; member in struct:idmap_get_res
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | reentr.c | 363 Gid_t gid; local 373 gid = (Gid_t)va_arg(ap, int); 375 gid = va_arg(ap, Gid_t); 377 retptr = getgrgid(gid); break;
|
/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | t-sem.c | 131 drop_priv(uid, gid) 133 gid_t gid; 137 r = setgid(gid); 158 semtest(owner, uid, gid) 161 gid_t gid; 168 r = drop_priv(uid, gid); 186 r = sm_semsetowner(semid, uid, gid, 0660); 192 r = drop_priv(uid, gid); 327 gid_t gid; local 330 gid [all...] |
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | getgrnam.c | 82 getgrgid(gid_t gid) argument 90 ret = getgrgid_r(gid, b->result, b->buffer, b->buflen); 95 ret = getgrgid_r(gid, b->result, b->buffer, b->buflen);
|
/osnet-11/usr/src/lib/libadm/common/ |
H A D | ckgid.c | 148 ckgid(char *gid, short disp, char *defstr, char *error, char *help, argument 170 (void) strcpy(gid, defstr); 192 (void) strcpy(gid, input);
|
/osnet-11/usr/src/lib/libbsm/common/ |
H A D | audit_rexecd.c | 139 gid_t gid; local 169 gid = (gid_t)-1; 172 gid = pwd->pw_gid; 196 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid, &tid)); 250 gid_t gid; local 280 gid = (gid_t)-1; 283 gid = pwd->pw_gid; 307 au_to_subject_ex(uid, uid, gid, uid, gid, pi [all...] |
H A D | audit_rshd.c | 105 gid_t gid; local 117 gid = (gid_t)-1; 120 gid = pwd->pw_gid; 134 (void) au_write(rd, au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
|
/osnet-11/usr/src/lib/nsswitch/ad/common/ |
H A D | getgrent.c | 31 const char *name, const char *domain, gid_t gid) 39 buflen = snprintf(NULL, 0, "%s@%s::%u:", name, domain, gid) + 1; 53 (void) snprintf(buffer, buflen, "%s@%s::%u:", name, domain, gid); 72 gid_t gid; local 88 * Map the name to gid using idmap service. 91 is_user = 0; /* Map name to gid */ 93 0, &is_user, &is_wuser, &gid, NULL, NULL, NULL); 100 if (update_buffer(be, argp, name, dname, gid) < 0) 127 if (argp->key.gid <= MAXUID) 131 if (idmap_get_u2w_mapping(&argp->key.gid, NUL 30 update_buffer(ad_backend_ptr be, nss_XbyY_args_t *argp, const char *name, const char *domain, gid_t gid) argument [all...] |
/osnet-11/usr/src/lib/nsswitch/files/common/ |
H A D | getgrent.c | 90 /* gid */ 94 /* check if gid is empty or overflows */ 98 return ((gid_t)gr_gid == argp->key.gid); 108 if (argp->key.gid > MAXUID) 114 * Validates group entry replacing gid > MAXUID by GID_NOBODY. 121 ulong_t gid; local 126 * getbygid() rejects searching by ephemeral gid therefore 128 * an ephemeral gid. 148 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */ [all...] |
H A D | getpwnam.c | 115 * Validates passwd entry replacing uid/gid > MAXUID by ID_NOBODY. 122 gid_t gid; local 128 * +name entries in passwd(4) do not override uid and gid 152 gidl = strtoul(gidp, (char **)&linep, 10); /* grab gid */ 160 gid = (gidl > MAXUID) ? GID_NOBODY : (gid_t)gidl; 163 idlen = snprintf(NULL, 0, "%u:%u", uid, gid); 170 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid);
|
/osnet-11/usr/src/lib/nsswitch/nis/common/ |
H A D | getpwnam.c | 57 * Validates passwd entry replacing uid/gid > MAXUID by ID_NOBODY. 64 gid_t gid; local 90 gidl = strtoul(gidp, (char **)&linep, 10); /* grab gid */ 98 gid = (gidl > MAXUID) ? GID_NOBODY : (gid_t)gidl; 101 idlen = snprintf(NULL, 0, "%u:%u", uid, gid); 110 *linepp, uid, gid, linep); 119 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid);
|
H A D | getgrent.c | 59 if (argp->key.gid > MAXUID) 61 (void) snprintf(gidstr, 12, "%d", argp->key.gid); 66 * Validates group entry replacing gid > MAXUID by GID_NOBODY. 72 ulong_t gid; local 91 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */ 96 if (gid <= MAXUID) 115 /* Replace ephemeral gid by GID_NOBODY in the same buffer */ 186 * Add gid to gid_array if it's not already there. gid_array must have room 190 add_gid(gid_t gid_array[], int numgids, gid_t gid) argument 214 gid_t gid; local [all...] |
/osnet-11/usr/src/lib/pam_modules/krb5/ |
H A D | utils.c | 68 * To get the gid from the passwd entry for specified user 72 get_pw_gid(char *user, gid_t *gid) argument 81 *gid = sp.pw_gid;
|
/osnet-11/usr/src/lib/libshell/common/bltins/ |
H A D | regress.c | 69 "[101:egid?The intercept effective gid is set to \aoriginal-egid\a. The " 70 "effective gid of the underlying system process is not affected. The " 74 "[+getegid()?The intercept effecive gid is returned. The " 75 "\bsetgid\b() intercept may change this between the real gid and " 77 "[+setgid(gid)?Sets the intercept effective gid to \agid\a. " 78 "Fails if \agid\a is neither the real gid nor " 168 int setgid(gid_t gid) argument 174 if (gid != intercept_rgid && gid ! [all...] |
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_acl.c | 242 * Get uid/gid too if pointers != NULL. 274 smbfs_acl_set(int fd, acl_t *acl, uid_t uid, gid_t gid) argument 293 if (gid != (gid_t)-1) 298 if (uid == (uid_t)-1 || gid == (gid_t)-1) { 308 if (gid == (gid_t)-1) 309 gid = st.st_gid; 316 error = smbfs_acl_zfs2sd(acl, uid, gid, selector, &sd);
|
/osnet-11/usr/src/lib/nsswitch/compat/common/ |
H A D | getgrent.c | 38 * bogus uid/gid values. 64 * Validates group entry replacing gid > MAXUID by GID_NOBODY. 70 ulong_t gid; local 88 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */ 93 if (gid <= MAXUID) 143 return (g->gr_gid == argp->key.gid); 153 if (argp->key.gid > MAXUID) 200 int gid = g->gr_gid; local 203 if (gid [all...] |
H A D | getpwent.c | 38 * bogus uid/gid values. 69 * Validates passwd entry replacing uid/gid > MAXUID by ID_NOBODY. 76 gid_t gid; local 101 gidl = strtoul(gidp, (char **)&linep, 10); /* grab gid */ 109 gid = (gidl > MAXUID) ? GID_NOBODY : (gid_t)gidl; 112 idlen = snprintf(NULL, 0, "%u:%u", uid, gid); 119 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid); 198 * - gid
|
/osnet-11/usr/src/lib/pam_modules/dhkeys/ |
H A D | key_call_uid.c | 47 * Create SYS (UNIX) style authenticator for the given uid/gid 52 authsys_create_uid(uid_t uid, gid_t gid) argument 64 res = authsys_create(host, uid, gid, 0, (gid_t *)NULL); 70 * my_key_call(proc, xdr_arg, arg, xdr_rslt, rslt, uit, gid) 78 xdrproc_t xdr_rslt, char *rslt, uid_t uid, gid_t gid) 131 clnt->cl_auth = authsys_create_uid(uid, gid); 143 key_setnet_uid(struct key_netstarg *arg, uid_t uid, gid_t gid) argument 148 (char *)arg, xdr_keystatus, (char *)&status, uid, gid)) { 161 uid_t uid, gid_t gid) 215 return (key_setnet_uid(&tmp, uid, gid)); 77 my_key_call(rpcproc_t proc, xdrproc_t xdr_arg, char *arg, xdrproc_t xdr_rslt, char *rslt, uid_t uid, gid_t gid) argument 159 key_setnet_g_uid(const char *netname, const char *skey, keylen_t skeylen, const char *pkey, keylen_t pkeylen, algtype_t algtype, uid_t uid, gid_t gid) argument 236 key_secretkey_is_set_uid(uid_t uid, gid_t gid) argument 256 key_removesecret_g_uid(uid_t uid, gid_t gid) argument [all...] |
/osnet-11/usr/src/lib/libproject/common/ |
H A D | getprojent.c | 136 ismember(struct project *proj, const char *user, gid_t gid, int is_default) argument 146 if (getgrgid_r(gid, &grp, grbuf, NSS_BUFLEN_GROUP) != NULL) { 267 gid_t gid; local 276 gid = pwd.pw_gid; 284 return (ismember(&proj, user, gid, DEFAULT_PROJECT)); 293 return (ismember(&proj, user, gid, 309 return (ismember(&proj, user, gid, DEFAULT_PROJECT)); 318 if (getgrgid_r(gid, &grp, grbuf, NSS_LINELEN_GROUP) != NULL) { 322 return (ismember(&proj, user, gid, DEFAULT_PROJECT)); 328 return (ismember(&proj, user, gid, NORMAL_PROJEC [all...] |