/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_restore_writer.c | 1462 NDMP_LOG(LOG_DEBUG, "xattr_hdr: %s size %d mode %06o uid %d gid %d", 2087 uid_t uid; local 2098 NDMP_LOG(LOG_DEBUG, "set_attr: %s uid %d gid %d uname %s gname %s " 2102 uid = st->st_uid; 2104 NDMP_LOG(LOG_DEBUG, "set_attr: new uid %d old %d", 2105 pwd->pw_uid, uid); 2106 uid = pwd->pw_uid; 2116 erc = lchown(name, uid, gid); 2120 "Could not set uid or/and gid for file %s.", name);
|
/illumos-gate/usr/src/cmd/passwd/ |
H A D | passwd.c | 176 static uid_t uid; variable 255 uid = getuid(); /* get the user id */ 277 struct passwd *pass = getpwuid(uid); 1198 if (uid != 0) { 1549 } else if (pass->pw_uid != uid) { 1551 event->adt_passwd.uid = pass->pw_uid;
|
/illumos-gate/usr/src/cmd/praudit/ |
H A D | format.c | 2014 pa_print_uid(pr_context_t *context, uid_t uid, int status, int flag) argument 2025 if ((pw = getpwuid(uid)) == NULL) { 2037 uval.int32_val = uid; 2046 * pa_pw_uid() : Issues pr_adr_u_int32 to reads uid from input stream 2057 uint32_t uid; local 2062 if (pr_adr_u_int32(context, &uid, 1) != 0) 2063 /* cannot retrieve uid */ 2066 return (pa_print_uid(context, uid, status, flag)); 2102 * pa_gr_uid() : Issues pr_adr_u_int32 to reads group uid from input stream 2128 * pa_pw_uid_gr_gid() : Issues pr_adr_u_int32 to reads uid o [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 99 static uid_t uid; /* Our real user-id */ variable 106 bool privileged; /* we're running as real uid root */ 149 int (*check_options_hook) __P((uid_t uid)) = NULL; 336 uid = getuid(); 337 privileged = (uid == 0); 338 (void) slprintf(numbuf, sizeof(numbuf), "%d", uid); 506 (*check_options_hook)(uid) == -1) { 534 pw = getpwuid(uid); 540 syslog(LOG_NOTICE, "pppd %s.%d%s started by %s, uid %d", 541 VERSION, PATCHLEVEL, IMPLEMENTATION, p, uid); [all...] |
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.h | 145 int uid; /* Invokers uid */ variable
|
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 354 uid_t uid; local 357 uid = getuid(); 358 pw = getpwuid(uid);
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | tape.c | 749 uid_t uid; local 763 uid = curfile.dip->di_suid == UID_LONG ? 829 /* 1254700: set uid/gid (previously missing) */ 830 if (lchown(rname, uid, gid) < 0 && !complained_lchown) { 884 if (chown(rname, uid, gid) < 0 && !complained_chown) { 942 if (fchown(ofile, uid, gid) < 0 && !complained_chown) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 174 int AlreadyPrinted(uid_t uid); 730 * the entry is indexed by the uid, so this can only be done if 731 * the uid is known (which it isn't in quick mode) 1348 * return true iff we've already printed project/plan for this uid; 1349 * if not, enter this uid into table (so this function has a side-effect.) 1356 AlreadyPrinted(uid_t uid) argument 1361 if (PlanPrinted[i] == uid) 1365 PlanPrinted[i] = uid;
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | hald_dbus.c | 958 user_at_console(unsigned long uid) argument 962 return ((stat("/dev/vt/console_user", &st) == 0) && (st.st_uid == uid)); 987 HAL_WARNING (("Could not get uid for connection: %s %s", error.name, error.message)); 992 HAL_INFO (("uid for caller is %ld", user_uid)); 1005 HAL_WARNING (("uid %d is not privileged", user_uid)); 2071 unsigned long uid; local 2104 uid = dbus_bus_get_unix_user (connection, sender, &error); 2105 if (uid == (unsigned long) -1 || dbus_error_is_set (&error)) { 2106 HAL_WARNING (("Could not get uid for connection: %s %s", error.name, error.message)); 2113 hal_util_branch_claim (hald_get_gdl (), d, TRUE, claim_service, uid); local 3362 unsigned long uid; local [all...] |
/illumos-gate/usr/src/cmd/idmap/idmap/ |
H A D | idmap.c | 49 * unixname, uid, gid, sid or not given at all: 58 #define TYPE_UID 0x001 /* uid */ 83 #define ID_UID "uid" 174 * sid:S-1-2-3-4 -> uid:5678 849 /* Assemble string form uid or gid */ 856 /* ID_UID ":" + uid + '\0' */ 2977 uid_t uid = UNDEFINED_UID; local 2997 &uid, 3063 nm->pid = uid; 3077 * idmapd returns fallback uid/gi [all...] |
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 1313 res->id.idmap_id_u.uid = wksid->pid; 1344 wksid = find_wksid_by_pid(req->id1.idmap_id_u.uid, is_user); 1595 res->id.idmap_id_u.uid = pid; 1914 * Similarly, we use req->id2.idmap_id_u.uid to return 1917 * the query always puts the result in req->id2.idmap_id_u.uid, 1955 req->id2.idmap_id_u.uid = IDMAP_SENTINEL_PID; 2012 pid = &req->id2.idmap_id_u.uid; 2108 assert(req->id1.idmap_id_u.uid != 2126 qs, req->id1.idmap_id_u.uid, is_user, 2222 posix_id = req->id2.idmap_id_u.uid; 3215 uid_t uid; local 3237 uid_t uid; local [all...] |
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | obj.c | 665 uint32_t uid = attr->value.ui; local 666 return (uid); 676 * uid - the UID. 684 uint32_t uid 693 attr->value.ui = uid; 695 return (uid); 721 uint32_t uid; local 727 uid = get_obj_uid(obj); 732 if (lcp->curr_uid != 0 && uid >= lcp->curr_uid) { 748 * uid_p- points to uid fo 2432 reg_auth_src( isns_type_t type, uint32_t uid, uchar_t *src ) argument 2835 uint32_t uid; local 2899 uint32_t uid, *refp; local 2985 uint32_t uid; local 3148 uint32_t num, uid; local 3569 uint32_t uid; local 3664 uint32_t uid; local [all...] |
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | setkey.c | 115 uid_t uid; member in struct:cacheuid_list 457 mapuid2cache(uid_t uid, struct mechdata *mdp) argument 460 int hash = HASH_UID(uid); 462 debug(KEYSERV_DEBUG, ("mapuid2cache %d %d %x", uid, hash, mdp)); 464 *cpp != NULL && (*cpp)->uid != uid; 473 appendsecretkey3(struct mechentry *mp, uid_t uid, setkeyarg3 *skey) argument 497 cpp = mapuid2cache(uid, mdp); 509 cp->uid = uid; 532 storesecretkey3(uid_t uid, setkeyarg3 *skey) argument 549 pk_setkey3(uid_t uid, setkeyarg3 *skey) argument 653 pk_clear3(uid_t uid) argument 717 pk_encrypt3( uid_t uid, cryptkeyarg3 *arg, deskeyarray *key ) argument 745 pk_decrypt3( uid_t uid, cryptkeyarg3 *arg, deskeyarray *key ) argument 761 uid_t uid; member in struct:secretkey_netname_list 817 appendnetname3(struct mechentry *mp, uid_t uid, key_netstarg3 *net) argument 888 store_netname3(uid_t uid, key_netstarg3 *net) argument 914 pk_netput3(uid_t uid, key_netstarg3 *netstore) argument 1019 getcachekey3(uid_t uid, struct mechentry *mp) argument 1046 getanycache3(uid_t uid) argument 1079 fetchcache3(uid_t uid, keylen_t k, algtype_t a) argument 1099 fetch_netname3(uid_t uid, mechtype *net, key_netstarg3 *ret) argument 1147 pk_netget3(uid_t uid, mechtype *net, key_netstarg3 *ret) argument 1258 fetchsecretkey3(uid_t uid, keylen_t k, algtype_t a) argument 1495 pk_get_conv_key3(uid_t uid, deskeyarg3 *arg, cryptkeyres3 *res) argument 1537 pk_crypt3( uid_t uid, cryptkeyarg3 *arg, deskeyarray *key, int mode ) argument [all...] |
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddent.c | 2197 int buflen, uid, retval = 1, errnum = 0; local 2253 uid = atoi(tmpbuf); 2257 if ((pwd = getpwuid(uid)) == 0) { 2259 gettext("can't map uid %d to username, skipping\n"), 2260 uid); 2977 (void) strlcpy(parse_err_msg, gettext("no uid"), 2989 * uid (col 2) 3065 gettext("invalid uid : %s"), 3124 value = __ns_ldap_getAttr(res->entry, "uid"); 3202 (void) strlcpy(parse_err_msg, gettext("no uid"), [all...] |
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_subr.c | 1864 uid_t uid; local 1869 (uid = crgetuid(cr)) != dir->i_uid && 1870 uid != entry->i_uid &&
|
/illumos-gate/usr/src/cmd/lp/include/ |
H A D | msgs.h | 324 uid_t uid; /* Clients UID */ member in struct:__anon805
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | main.cc | 1545 uid_t uid; local 1555 uid = getuid(); 1556 pwent = getpwuid(uid);
|
/illumos-gate/usr/src/uts/common/rpc/sec_gss/ |
H A D | svc_rpcsec_gss.c | 579 &client_data->u_cred.uid, 594 client_data->u_cred.uid, 1185 (int *)&gss_parms->qop_rcvd, client_data->u_cred.uid)) { 1406 check_verf(struct rpc_msg *msg, gss_ctx_id_t context, int *qop_state, uid_t uid) argument 1489 /* XXX uid ? */
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | evchannels.c | 2281 uid_t uid = crgetuid(curthread->t_cred); local 2287 if (uid && uid != chp->ch_uid) {
|
H A D | cred.c | 802 crsetugid(cred_t *cr, uid_t uid, gid_t gid) argument 808 if (!VALID_UID(uid, zone) || !VALID_GID(gid, zone)) 811 cr->cr_uid = cr->cr_ruid = cr->cr_suid = uid; 1036 * root (no root net access). Check the real uid, if it isn't root 1037 * make that the uid instead and retry the call.
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 386 * Mountd requires uid 0 for: 2185 * Get supplemental groups for uid 2188 getusergroups(uid_t uid, uint_t *ngrps, gid_t **grps) argument 2195 if (getpwuid_r(uid, &pwd, pwbuf, pw_size) == NULL) 2252 get_uid(char *value, uid_t *uid) argument 2263 *uid = pw->pw_uid; 2270 *uid = (uid_t)intval;
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_acl.c | 1631 * Determine uid and gid. 2093 uid_t uid = crgetuid(cr); local 2137 if (uid == fowner) 2158 uid == newid) 2276 uid_t uid = crgetuid(cr); local 2300 if (uid == zdp->z_uid) {
|
/illumos-gate/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_clientstub.c | 148 client_context_t uid; // For shared connection requests, each subordinate DNSServiceRef has its own ID, member in struct:_DNSServiceRef_t 172 client_context_t uid; // For demultiplexing multiple DNSServiceRegisterRecord calls member in struct:_DNSRecordRef_t 381 hdr->client_context = ref->uid; 503 sdr->uid.u32[0] = 0; 504 sdr->uid.u32[1] = 0; 522 if (++(*ref)->uid.u32[0] == 0) 523 ++(*ref)->uid.u32[1]; // In parent DNSServiceOp increment UID counter 527 sdr->uid = (*ref)->uid; 1713 while (op && (op->uid [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_xdr.c | 764 * owner/group and if so there is no need to call into the uid/gid 765 * mapping code. While the uid/gid interfaces have their own cache 771 uid_t uid; member in struct:ug_cache 806 pug->uid = pug->gid = 0; 1214 vap->va_uid = pug->uid; 1217 uid_t uid; local 1221 error = nfs_idmap_str_uid(&ov, &uid, FALSE); 1238 vap->va_uid = uid; 1241 pug->uid = uid; 1823 uid_t uid; local [all...] |
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.c | 2043 if (mcp->pwbuf != NULL && mcp->pwd.pw_uid == mcp->uid) 2056 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf, 2089 * ERANGE the uid is too big 2090 * EINVAL the string starts with a digit, but is not a valid uid 2100 uid_t uid; local 2104 uid = strtol(str, &cp, 10); 2106 if (uid == 0 && errno != 0) { 2115 if (uid > UID_MAX) 2118 *uidp = uid; 2219 if (cip->uid [all...] |