Searched refs:uid (Results 151 - 175 of 549) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_lookup.c49 uid_t uid,
125 if (*key == '=' && uid == 0) {
42 do_lookup1( char *mapname, char *key, char *subdir, char *mapopts, char *path, uint_t isdirect, uid_t uid, autofs_action_t *action, struct linka *linkp) argument
/illumos-gate/usr/src/cmd/bnu/
H A Dexpfile.c51 uid_t uid; local
64 if ((user[0]=='\0') || (gninfo(user, &uid, file) != 0)){
H A Daccount.c48 char uid[MODSTR]; /* user id */ member in struct:acData
110 acptr->uid, FS,
201 sprintf(acptr->uid,"%ld",(long) passent->pw_uid);
264 copyText(acptr->uid, sizeof(acptr->uid), NOTAVAIL);
/illumos-gate/usr/src/lib/libcmdutils/
H A DMakefile.com29 CMD_OBJS= avltree.o sysattrs.o writefile.o process_xattrs.o uid.o gid.o \
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dgetpwent.c39 * bogus uid/gid values.
70 * Validates passwd entry replacing uid/gid > MAXUID by ID_NOBODY.
76 uid_t uid; local
96 uidl = strtoul(uidp, (char **)&linep, 10); /* grab uid */
109 uid = (uidl > MAXUID) ? UID_NOBODY : (uid_t)uidl;
113 idlen = snprintf(NULL, 0, "%u:%u", uid, gid);
120 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid);
161 return (p->pw_uid == argp->key.uid);
171 if (argp->key.uid > MAXUID)
198 * - uid
[all...]
/illumos-gate/usr/src/cmd/acct/
H A Dacctprc1.c37 * sorted by uid/name; it is used to make better guesses at login names
55 struct urec { /* 1 for each distinct uid/name */
56 uid_t ur_uid; /* sorted by uid/name */
158 * return ptr to name corresponding to uid
162 getname(uid_t uid, dev_t tty, time_t start) argument
166 if ((p = getnamc(uid, tty, start)) != NULL)
168 return (uidtonam(uid));
241 * corresponding to uid, return ptr to the name.
243 * for any urec having same uid as uid, searc
250 getnamc(uid_t uid, dev_t tty, time_t start) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_common.kshlib100 typeset uid=$(id -u $user)
106 grep "$cmd \[user $uid ($user) on $hname\]" $NEW_HISTORY >/dev/null \
212 typeset is_set lflag dflag dsname gname gid uname uid opt str code tmp
267 uid=$(id -u ${tmp%% *})
269 code="${str}l\$$uid $opt"
278 code="${str}d\$$uid $opt"
/illumos-gate/usr/src/test/smbclient-tests/tests/smbfs/acl/
H A Dtp_acl_004.ksh131 read mode cnt uid gid junk < cti_stdout
136 cmd="chmod A+user:${uid}:rxaRcs::allow $TMNT/$tc_id"
167 # The new ACL should contain $uid
168 grep " user:${uid}:" acl_test >/dev/null
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_logon.c95 uid_t uid; local
144 uid = ADT_NO_ATTRIB;
152 uid = token->tkn_user.i_id;
188 if (adt_set_user(ah, uid, gid, uid, gid, NULL, ADT_NEW)) {
213 entry->sa_uid = uid;
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dacl_api.c247 * Get uid/gid too if pointers != NULL.
279 smbfs_acl_set(int fd, acl_t *acl, uid_t uid, gid_t gid) argument
296 if (uid != (uid_t)-1)
303 if (uid == (uid_t)-1 || gid == (gid_t)-1) {
311 if (uid == (uid_t)-1)
312 uid = st.st_uid;
321 error = smbfs_acl_zfs2sd(acl, uid, gid, selector, &sd);
H A Diod_cl.c71 uid_t uid; local
75 uid = getuid();
77 SMBIOD_USR_DOOR, uid);
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_selfcred.c217 uid_t uid,
227 (me, "looking for uid %d (slot used = %d)\n", uid, used_slot);
229 /* first find the slot with a matching uid */
233 ch->child_uid == uid) {
238 (me, "slot %d found with uid %d\n",
285 ch->child_uid = uid;
512 uid_t uid; local
530 uid = ucred_geteuid(uc);
535 if (_whoami == NSCD_MAIN || uid !
216 get_cslot( uid_t uid, int no_alloc) argument
896 selfcred_fork( void *buf, int doorfd, int cslot, uid_t uid, gid_t gid) argument
1261 uid_t uid; local
1419 static uid_t uid = 0; local
[all...]
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate.c73 use[3] = gettext("list_devices [-s] [-U uid] [-z zonename] "
75 use[4] = gettext("list_devices [-s] [-U uid] [-z zonename] "
105 "[-s] [-U uid] -l|-n|-u [device]");
107 "[-s] [-U uid] [-l|-n|-u] -c dev-class");
259 uid_t uid; local
541 uid = atoi(optarg);
580 uid = pw_ent.pw_uid;
582 if (getpwuid_r(uid, &pw_ent, pw_buf, sizeof (pw_buf)) == NULL) {
584 gettext("Invalid user ID -- %d -- \n"), uid);
587 uid
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dquotacalls.c105 quot.uid = quot32.uid;
110 if (quot.uid < 0)
111 quot.uid = crgetruid(cr);
138 error = setquota(quot.op, (uid_t)quot.uid, ufsvfsp,
143 error = getquota((uid_t)quot.uid, ufsvfsp, (caddr_t)quot.addr,
282 * The file system time limits are in the dquot for uid 0.
459 * and has the right uid.
491 setquota(int cmd, uid_t uid, struct ufsvfs *ufsvfsp, argument
527 error = getdiskquota(uid, ufsvfs
681 getquota(uid_t uid, struct ufsvfs *ufsvfsp, caddr_t addr, cred_t *cr) argument
[all...]
/illumos-gate/usr/src/test/util-tests/tests/awk/examples/out/
H A Dt.8.x162 23nobody:*:60001:60001:SVR4 23nobody:*:60001:60001:SVR4 uid:/dev/null:/dev/null
163 24noaccess:*:60002:60002:uid 24noaccess:*:60002:60002:uid access:/dev/null:/dev/null
164 25nobody:*:-2:-2:original 25nobody:*:-2:-2:original uid:/dev/null:/dev/null
192 23 23 * 60001 60001 SVR4 nobody uid /dev/null /dev/null
193 24 24 * 60002 60002 uid no access /dev/null /dev/null
194 25 25 * -2 -2 original nobody uid /dev/null /dev/null
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_ptsops.c105 uid_t uid; local
132 if (ptms_minor_valid(min, &uid, &gid) == 0) {
145 if (dv->sdev_attr->va_uid != uid || dv->sdev_attr->va_gid != gid) {
146 dv->sdev_attr->va_uid = uid;
152 sdcmn_err7(("devpts_validate: update uid/gid/times%s\n", nm));
169 uid_t uid; local
192 if (!ptms_minor_valid(min, &uid, &gid)) {
206 vap->va_uid = uid;
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dfiles.c43 off_t chfiles ( char * * list, uid_t uid, gid_t gid ) /* funcdef */ argument
75 (void) chownmod(file, uid, gid, 0600);
87 if (!isadmin(uid))
154 fdprintf(fd, "= %s, uid %u, gid %u, size %ld, %s\n",
155 rp->secure->req_id, rp->secure->uid, rp->secure->gid,
339 uid_t uid,
385 (void) chownmod(file, uid, gid, 0600);
413 (void) chownmod(file, uid, gid, 0600);
336 _alloc_files( int num, char * prefix, uid_t uid, gid_t gid ) argument
/illumos-gate/usr/src/uts/common/idmap/
H A Didmap_cache.c321 uint32_t rid, uid_t *uid)
337 if (result->uid != UNDEF_UID && result->uid_ttl > now) {
338 *uid = result->uid;
399 *pid = result->uid;
419 uint32_t *rid, uid_t uid)
427 entry.pid = uid;
479 uint32_t rid, uid_t uid, int direction)
499 if (result->uid == UNDEF_UID)
501 result->uid
320 kidmap_cache_lookup_uidbysid(idmap_cache_t *cache, const char *sid_prefix, uint32_t rid, uid_t *uid) argument
418 kidmap_cache_lookup_sidbyuid(idmap_cache_t *cache, const char **sid_prefix, uint32_t *rid, uid_t uid) argument
478 kidmap_cache_add_sid2uid(idmap_cache_t *cache, const char *sid_prefix, uint32_t rid, uid_t uid, int direction) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/nsmb/
H A Dnsmb.c331 mdb_printf("// smb_vc_t uid server \tuser\t\tstate\n");
473 uintptr_t uid; /* optional filtering by UID */ member in struct:rqlist_cbdata
582 uid_t uid; /* optional filtering by UID */ member in struct:pwtree_cbdata
592 if (cbd->uid != (uid_t)-1 && cbd->uid != ptn->uid) {
602 mdb_printf(" %d", (uintptr_t)ptn->uid);
633 cbd.uid = (uid_t)mdb_strtoull(uid_str);
637 cbd.uid = (uid_t)mdb_strtoull(buf);
640 cbd.uid
[all...]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_acl.c308 uid_t uid; local
350 error = smbfs_acl_sd2zfs(sd, &vsa, &uid, &gid);
355 SMBVDEBUG("uid=%u, gid=%u", uid, gid);
363 np->n_uid = uid;
480 smbfs_acl_store(vnode_t *vp, vsecattr_t *vsa, uid_t uid, gid_t gid, argument
497 error = smbfs_acl_zfs2sd(vsa, uid, gid, selector, &sd);
531 uid_t uid = (uid_t)-1; local
538 uid = vap->va_uid;
549 error = smbfs_acl_store(vp, NULL, uid, gi
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_idmap.c27 * There are well defined policies for mapping uid and gid values to and
35 * started, the policy is to _always_ work with stringified uid's
99 * a) If the otw string is a stringified uid (ie. does _not_ contain
100 * an '@' sign and is of the form "12345") then the literal uid is
298 * Convert a user utf-8 string identifier into its local uid.
301 nfs_idmap_str_uid(utf8string *u8s, uid_t *uid, bool_t isserver) argument
319 *uid = UID_NOBODY;
327 *uid = UID_NOBODY;
350 error = nfs_idmap_s2i_literal(u8s, uid, isserver);
362 if (nfs_idmap_cache_s2i_lkup(&nig->s2u_ci, u8s, &hashno, uid)) {
514 nfs_idmap_uid_str(uid_t uid, utf8string *u8s, bool_t isserver) argument
[all...]
/illumos-gate/usr/src/cmd/picl/picld/
H A Dpicld.c116 uid_t uid; member in struct:__anon55
183 check_user(uid_t uid) argument
189 if (uid == 0)
192 if ((tmp_uid = user_count[i].uid) == uid) {
202 user_count[free_idx].uid = uid;
210 done_user(uid_t uid) argument
214 if (uid == 0)
217 if (user_count[i].uid
226 enter_picld_wait(uid_t uid) argument
244 exit_picld_wait(uid_t uid) argument
261 uid_t uid; local
[all...]
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtoken.c528 * ace who adr_u_int32 (uid/gid)
552 * uid adr_int32
566 int32_t uid; local
569 adrm_int32(adr, &uid, 1);
576 if (m_usere == uid)
589 (obj_owner == uid))
599 * uid adr_int32
613 int32_t uid; local
616 adrm_int32(adr, &uid, 1);
623 if (m_usere == uid)
660 int32_t uid; local
839 int32_t uid, gid, cuid, cgid, mode, seq; local
1815 uid_t uid; local
1876 int32_t uid; local
1900 int32_t uid; local
[all...]
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_cache.c96 uid_t uid; member in struct:sid2uid_gid
124 uid_t uid; member in struct:winname2uid_gid
478 idmap_rid_t rid, uid_t *uid)
494 if (result->uid != UNDEF_UID && result->uid_ttl > now) {
495 *uid = result->uid;
560 *pid = result->uid;
578 idmap_rid_t *rid, uid_t uid)
586 entry.pid = uid;
642 idmap_cache_lookup_winnamebyuid(char **name, char **domain, uid_t uid) argument
477 idmap_cache_lookup_uidbysid(const char *sid_prefix, idmap_rid_t rid, uid_t *uid) argument
577 idmap_cache_lookup_sidbyuid(char **sid_prefix, idmap_rid_t *rid, uid_t uid) argument
732 idmap_cache_lookup_uidbywinname(const char *name, const char *domain, uid_t *uid) argument
792 idmap_cache_add_sid2uid(const char *sid_prefix, idmap_rid_t rid, uid_t uid, int direction) argument
1194 idmap_cache_add_winname2uid(const char *name, const char *domain, uid_t uid, int direction) argument
[all...]
/illumos-gate/usr/src/lib/pam_modules/roles/
H A Droles.c52 uid_t uid; local
99 /* stop masquerades by mapping username to uid to username */
140 if ((uid = getuid()) == 0) {
147 if ((pw_entry = getpwuid_r(uid, &pwd, buf,

Completed in 280 milliseconds

1234567891011>>