Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/illumos-gate/usr/src/lib/libcmdutils/common/
H A Duid.c42 static boolean_t isreserveduid(uid_t uid);
51 uid_t uid = start; in findnextuid() local
59 if (pwd->pw_uid >= uid) { in findnextuid()
64 uid = pwd->pw_uid + 1; in findnextuid()
74 while (isreserveduid(uid) && uid < stop) /* Skip reserved IDs */ in findnextuid()
75 uid++; in findnextuid()
76 *ret = uid; in findnextuid()
85 isreserveduid(uid_t uid) in isreserveduid() argument
87 return (uid == 60001 || uid == 60002 || uid == 65534); in isreserveduid()
97 uid_t uid; in findunuseduid() local
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_pass.c125 if (pa->uid < pb->uid) in smb_pkey_cmp()
127 if (pa->uid > pb->uid) in smb_pkey_cmp()
209 uid_t uid; in smb_pkey_del() local
212 uid = pk->pk_uid; in smb_pkey_del()
213 if (uid == (uid_t)-1) in smb_pkey_del()
214 uid = crgetruid(cr); in smb_pkey_del()
216 if (secpolicy_smbfs_login(cr, uid)) in smb_pkey_del()
219 tmp->uid = uid; in smb_pkey_del()
257 ioc_uid == tmp->uid) { in smb_pkey_deluid()
282 uid_t uid; in smb_pkey_add() local
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dhtable.c61 const uint32_t uid in avl_search() argument
67 if (x->uid > uid) { in avl_search()
69 } else if (x->uid < uid) { in avl_search()
94 const uint32_t uid in avl_search_next() argument
101 if (x->uid > uid) { in avl_search_next()
104 } else if (x->uid <= uid) { in avl_search_next()
302 if (x->uid < q->uid) { in avl_insert()
309 if (x->uid < q->uid) { in avl_insert()
315 if (x->uid < a->uid) { in avl_insert()
324 if (x->uid < p->uid) { in avl_insert()
[all …]
H A Dqry.c194 uint32_t uid = lcp->curr_uid; /* last child */ in e2c() local
201 if (uid == 0) { in e2c()
210 if (*uids > uid) { in e2c()
218 uid = tmp_uid; in e2c()
221 if (uid == 0) { in e2c()
231 lcp->curr_uid = uid; in e2c()
241 uint32_t uid; in qry_c2e() local
245 uid = (uint32_t)cache_lookup(lcp, NULL, in qry_c2e()
248 uid = 0; in qry_c2e()
252 lcp->curr_uid = uid; in qry_c2e()
[all …]
H A Desi.c100 uint32_t uid, in new_esi_portal() argument
124 p->ref = uid; in new_esi_portal()
172 uint32_t uid, in ev_new() argument
186 ev->uid = uid; in ev_new()
313 uint32_t uid, in extract_esi_portal() argument
328 SET_UID_LCP(&lc, OBJ_ENTITY, uid); in extract_esi_portal()
341 FOR_EACH_OBJS(portal_uids, num_of_portal, uid, { in extract_esi_portal()
342 if (uid != 0) { in extract_esi_portal()
343 lc.data[0].ui = uid; in extract_esi_portal()
346 p = new_esi_portal(uid, in extract_esi_portal()
[all …]
H A Dscn.c363 if (x->uid == p->uid) { in scn_add_portal()
398 uint32_t uid in scn_remove_portal() argument
414 if (x->uid == uid) { in scn_remove_portal()
462 if ((*pp)->uid == e->uid) { in scn_list_add()
468 } else if ((*pp)->uid < e->uid) { in scn_list_add()
504 uint32_t uid in scn_list_remove() argument
512 if (e->uid == uid) { in scn_list_remove()
517 } else if (e->uid < uid) { in scn_list_remove()
577 uint32_t uid, in new_scn_portal() argument
586 p->uid = uid; in new_scn_portal()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Duid.c44 setuid(uid_t uid) in setuid() argument
51 uid_t oldruid = uid; in setuid()
56 if (!VALID_UID(uid, zone)) in setuid()
59 if (uid > MAXUID) { in setuid()
60 if (ksid_lookupbyuid(zone, uid, &ksid) != 0) in setuid()
83 if ((uid == cr->cr_ruid || uid == cr->cr_suid) && in setuid()
84 secpolicy_allow_setid(cr, uid, B_TRUE) != 0) { in setuid()
92 newcr->cr_uid = uid; in setuid()
95 } else if ((error = secpolicy_allow_setid(cr, uid, B_FALSE)) == 0) { in setuid()
100 if (!uidchge && uid != cr->cr_ruid) { in setuid()
[all …]
H A Dchown.c58 fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag) in fchownat() argument
64 if (uid != (uid_t)-1 && !VALID_UID(uid, zone) || in fchownat()
68 vattr.va_uid = uid; in fchownat()
83 chown(char *path, uid_t uid, gid_t gid) in chown() argument
85 return (fchownat(AT_FDCWD, path, uid, gid, 0)); in chown()
89 lchown(char *path, uid_t uid, gid_t gid) in lchown() argument
91 return (fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW)); in lchown()
95 fchown(int fd, uid_t uid, uid_t gid) in fchown() argument
97 return (fchownat(fd, NULL, uid, gid, 0)); in fchown()
/illumos-gate/usr/src/cmd/keyserv/
H A Dsetkey.c113 uid_t uid; member
455 mapuid2cache(uid_t uid, struct mechdata *mdp) in mapuid2cache() argument
458 int hash = HASH_UID(uid); in mapuid2cache()
460 debug(KEYSERV_DEBUG, ("mapuid2cache %d %d %x", uid, hash, mdp)); in mapuid2cache()
462 *cpp != NULL && (*cpp)->uid != uid; in mapuid2cache()
471 appendsecretkey3(struct mechentry *mp, uid_t uid, setkeyarg3 *skey) in appendsecretkey3() argument
495 cpp = mapuid2cache(uid, mdp); in appendsecretkey3()
507 cp->uid = uid; in appendsecretkey3()
530 storesecretkey3(uid_t uid, setkeyarg3 *skey) in storesecretkey3() argument
540 return (appendsecretkey3(mp, uid, skey)); in storesecretkey3()
[all …]
H A Dkeyserv.c623 __key_set_1_svc(uid, key, status) in __key_set_1_svc() argument
624 uid_t uid; in __key_set_1_svc()
629 (void) fprintf(stderr, "set(%d, %.*s) = ", uid,
632 *status = pk_setkey(uid, key);
641 __key_encrypt_pk_2_svc(uid, arg, res) in __key_encrypt_pk_2_svc() argument
642 uid_t uid; in __key_encrypt_pk_2_svc()
648 (void) fprintf(stderr, "encrypt(%d, %s, %08x%08x) = ", uid,
653 res->status = pk_encrypt(uid, arg->remotename, &(arg->remotekey),
669 __key_decrypt_pk_2_svc(uid, arg, res) in __key_decrypt_pk_2_svc() argument
670 uid_t uid; in __key_decrypt_pk_2_svc()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dchown.c36 fchownat(int fd, const char *name, uid_t uid, gid_t gid, int flags) in fchownat() argument
38 return (syscall(SYS_fchownat, fd, name, uid, gid, flags)); in fchownat()
43 chown(const char *name, uid_t uid, gid_t gid) in chown() argument
46 return (syscall(SYS_chown, name, uid, gid)); in chown()
48 return (fchownat(AT_FDCWD, name, uid, gid, 0)); in chown()
54 lchown(const char *name, uid_t uid, gid_t gid) in lchown() argument
57 return (syscall(SYS_lchown, name, uid, gid)); in lchown()
59 return (fchownat(AT_FDCWD, name, uid, gid, AT_SYMLINK_NOFOLLOW)); in lchown()
65 fchown(int filedes, uid_t uid, gid_t gid) in fchown() argument
68 return (syscall(SYS_fchown, filedes, uid, gid)); in fchown()
[all …]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod-svc/
H A Dsmbiod-svc.c64 uid_t uid; member
74 static int cmd_start(uid_t uid, gid_t gid);
75 static int new_child(uid_t uid, gid_t gid);
94 child_find_by_uid(uid_t uid) in child_find_by_uid() argument
100 if (cp->uid == uid) in child_find_by_uid()
358 uid_t uid; in svc_dispatch() local
379 uid = ucred_getruid(ucred); in svc_dispatch()
393 rc = cmd_start(uid, gid); in svc_dispatch()
411 cmd_start(uid_t uid, gid_t gid) in cmd_start() argument
418 cp = child_find_by_uid(uid); in cmd_start()
[all …]
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_getuid.c53 set_gssd_uid(uid_t uid) in set_gssd_uid() argument
79 printf(gettext("set_gssd_uid called with uid = %d\n"), uid); in set_gssd_uid()
85 if (uid == 1) in set_gssd_uid()
86 uid = 0; in set_gssd_uid()
93 krb5_cc_uid = uid; in set_gssd_uid()
103 (uid != 0 && setreuid(uid, -1) != 0) || in set_gssd_uid()
104 (uid != 0 && seteuid(uid) != 0)) { in set_gssd_uid()
115 if (uid != 0) in set_gssd_uid()
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rexecd.c53 selected(uid, user, event, sf) in selected() argument
54 uid_t uid; in selected()
63 if (uid > MAXEPHUID) {
91 audit_rexecd_session_setup(char *name, char *mach, uid_t uid) in audit_rexecd_session_setup() argument
98 info.ai_auid = uid; in audit_rexecd_session_setup()
138 uid_t uid; local
168 uid = (uid_t)-1;
171 uid = pwd->pw_uid;
176 if (!selected(uid, user, event, -1))
196 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid, &tid));
[all …]
H A Daudit_rexd.c81 selected(uid, user, event, sf) in selected() argument
82 uid_t uid; in selected()
91 if (uid > MAXEPHUID) {
119 audit_rexd_session_setup(char *name, char *mach, uid_t uid) in audit_rexd_session_setup() argument
130 info.ai_auid = uid; in audit_rexd_session_setup()
148 audit_rexd_fail(msg, hostname, user, uid, gid, shell, cmd) in audit_rexd_fail() argument
152 uid_t uid; /* user id of user requesting service */
189 if (!selected(uid, user, event, -1))
203 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
224 "User id: %d"), uid);
[all …]
H A Daudit_rshd.c104 uid_t uid; in generate_record() local
116 uid = (uid_t)-1; in generate_record()
119 uid = pwd->pw_uid; in generate_record()
123 if (!selected(uid, locuser, rshd_event, sf_flag)) in generate_record()
134 (void) au_write(rd, au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid, in generate_record()
174 selected(uid_t uid, char *locuser, au_event_t event, int sf) in selected() argument
180 if (uid > MAXEPHUID) { in selected()
204 uid_t uid; in setup_session() local
209 uid = (uid_t)-1; in setup_session()
211 uid = pwd->pw_uid; in setup_session()
[all …]
/illumos-gate/usr/src/lib/pam_modules/dhkeys/
H A Dkey_call_uid.c50 authsys_create_uid(uid_t uid, gid_t gid) in authsys_create_uid() argument
62 res = authsys_create(host, uid, gid, 0, (gid_t *)NULL); in authsys_create_uid()
76 xdrproc_t xdr_rslt, char *rslt, uid_t uid, gid_t gid) in my_key_call() argument
86 r = (*__key_encryptsession_pk_LOCAL)(uid, arg, &res); in my_key_call()
97 r = (*__key_decryptsession_pk_LOCAL)(uid, arg, &res); in my_key_call()
108 r = (*__key_gendes_LOCAL)(uid, 0, &res); in my_key_call()
129 clnt->cl_auth = authsys_create_uid(uid, gid); in my_key_call()
141 key_setnet_uid(struct key_netstarg *arg, uid_t uid, gid_t gid) in key_setnet_uid() argument
146 (char *)arg, xdr_keystatus, (char *)&status, uid, gid)) { in key_setnet_uid()
159 uid_t uid, gid_t gid) in key_setnet_g_uid() argument
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-sem.c131 drop_priv(uid, gid) in drop_priv() argument
132 uid_t uid; in drop_priv()
140 r = setuid(uid);
158 semtest(owner, uid, gid) in semtest() argument
160 uid_t uid;
166 if (!owner && uid != 0)
168 r = drop_priv(uid, gid);
184 if (uid != 0)
186 r = sm_semsetowner(semid, uid, gid, 0660);
192 r = drop_priv(uid, gid);
[all …]
/illumos-gate/usr/src/cmd/chown/
H A Dchown.c64 static uid_t uid = (uid_t)-1; variable
222 if (sid_to_id(argv[0], B_TRUE, &uid)) { in main()
228 uid = pwd->pw_uid; in main()
232 uid = (uid_t)strtoul(argv[0], NULL, 10); in main()
265 LCHOWN(argv[c], uid, gid); in main()
294 uid, gid); in main()
312 CHOWN(argv[c], uid, gid); in main()
319 CHOWN(argv[c], uid, gid); in main()
329 chownr(argv[c], uid, gid); in main()
342 LCHOWN(argv[c], uid, gid); in main()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dchgrp.c126 int uid; /* uid */ member
171 key->uid = key->gid = NOID; in getids()
194 key->uid = n; in getids()
237 int uid; in b_chgrp() local
306 uid = st.st_uid; in b_chgrp()
369 m->to.uid = m->to.gid = NOID; in b_chgrp()
376 keys[1].gid = keys[2].uid = NOID; in b_chgrp()
381 if ((uid = key.uid) != NOID) in b_chgrp()
434 uid = gid = NOID; in b_chgrp()
435 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dkeychain.c57 uid_t uid, in smbfs_keychain_cmn() argument
67 pk.pk_uid = uid; in smbfs_keychain_cmn()
158 smbfs_keychain_add(uid_t uid, const char *dom, const char *usr, in smbfs_keychain_add() argument
173 err = smbfs_keychain_cmn(cmd, uid, dom, usr, lmhash, nthash); in smbfs_keychain_add()
179 smbfs_keychain_addhash(uid_t uid, const char *dom, const char *usr, in smbfs_keychain_addhash() argument
184 err = smbfs_keychain_cmn(cmd, uid, dom, usr, in smbfs_keychain_addhash()
191 smbfs_keychain_del(uid_t uid, const char *dom, const char *usr) in smbfs_keychain_del() argument
193 return (smbfs_keychain_cmn(SMBIOC_PK_DEL, uid, dom, usr, NULL, NULL)); in smbfs_keychain_del()
203 uid_t uid = (uid_t)-1; in smbfs_keychain_chk() local
204 return (smbfs_keychain_cmn(SMBIOC_PK_CHK, uid, dom, usr, NULL, NULL)); in smbfs_keychain_chk()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/
H A Dedquota.c108 uid_t uid; in main() local
151 uid = getentry(optarg); in main()
152 if (uid > MAXUID) { in main()
156 getprivs(uid); in main()
162 uid = getentry(argv[i]); in main()
163 if (uid > MAXUID) { in main()
167 getdiscq(uid); in main()
168 putprivs(uid); in main()
194 uid = getentry(argv[i]); in main()
195 if (uid > MAXUID) in main()
[all …]
/illumos-gate/usr/src/lib/libsecdb/
H A Dexec_attr.txt44 DHCP Management:suser:cmd:::/usr/lib/inet/dhcp/svcadm/dhcpconfig:uid=0
45 DHCP Management:suser:cmd:::/usr/lib/inet/dhcp/svcadm/dhtadm:uid=0
46 DHCP Management:suser:cmd:::/usr/lib/inet/dhcp/svcadm/pntadm:uid=0
47 Device Management:suser:cmd:::/usr/sbin/allocate:uid=0
48 Device Management:suser:cmd:::/usr/sbin/add_drv:uid=0
49 Device Management:suser:cmd:::/usr/sbin/deallocate:uid=0
50 Device Management:suser:cmd:::/usr/sbin/rem_drv:uid=0
51 Device Management:suser:cmd:::/usr/sbin/update_drv:uid=0
52 Device Security:suser:cmd:::/usr/sbin/add_drv:uid=0
53 Device Security:suser:cmd:::/usr/sbin/devfsadm:uid=0
[all …]
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvuid.c44 valid_uid( uid, pptr ) in valid_uid() argument
45 uid_t uid; in valid_uid()
50 if( uid <= 0 ) return( INVALID );
51 if( uid <= DEFRID ) {
52 if( pptr ) *pptr = getpwuid( uid );
57 if( uid > MAXUID ) return( TOOBIG );
59 if( t_pptr = getpwuid( uid ) ) {
/illumos-gate/usr/src/cmd/fs.d/smbclnt/chacl/
H A Dchacl.c79 uid_t uid = (uid_t)-1; in main() local
98 uid = (uid_t)tl; in main()
147 if (uid != (uid_t)-1) in main()
155 chacl(argv[optind], selector, uid, gid, acl); in main()
163 chacl(char *file, uint32_t selector, uid_t uid, gid_t gid, acl_t *acl) in chacl() argument
181 if (uid == (uid_t)-1 || gid == (gid_t)-1) { in chacl()
191 if (uid == (uid_t)-1) in chacl()
192 uid = st.st_uid; in chacl()
200 error = smbfs_acl_zfs2sd(acl, uid, gid, selector, &sd); in chacl()
212 if (uid == (uid_t)-1) in chacl()
[all …]

12345678910>>...27