Home
last modified time | relevance | path

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

12345678910>>...26

/illumos-gate/usr/src/lib/libcmdutils/common/
H A Duid.c51 uid_t uid = start; in findnextuid() local
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
99 for (uid = start; uid <= stop; uid++) { in findunuseduid()
108 if (uid > stop) in findunuseduid()
[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()
219 tmp->uid = uid; in smb_pkey_del()
282 uid_t uid; in smb_pkey_add() local
284 uid = pk->pk_uid; in smb_pkey_add()
292 cpid->uid = uid; in smb_pkey_add()
336 uid_t uid; in smb_pkey_check() local
346 cpid->uid = uid; in smb_pkey_check()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dhtable.c67 if (x->uid > uid) { in avl_search()
69 } else if (x->uid < uid) { in avl_search()
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()
398 uid ++; in new_uid()
401 uid ++; in new_uid()
[all …]
H A Dqry.c218 uid = tmp_uid; in e2c()
241 uint32_t uid; in qry_c2e() local
248 uid = 0; in qry_c2e()
309 uint32_t uid; in qry_slf() local
314 uid = 0; in qry_slf()
396 uid = 0; in qry_i2g()
465 uid = 0; in qry_p2g()
523 uid = 0; in qry_g2i()
575 uid = 0; in qry_g2p()
742 uint32_t uid in insert_uid() argument
[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
460 uint32_t uid, in esi_load() argument
525 uint32_t uid, in esi_add() argument
559 uint32_t uid in esi_remove() argument
597 uid = 0; in esi_remove_obj()
682 uint32_t uid in ev_match() argument
[all …]
H A Dscn.c363 if (x->uid == p->uid) { in scn_add_portal()
414 if (x->uid == uid) { in scn_remove_portal()
512 if (e->uid == uid) { in scn_list_remove()
517 } else if (e->uid < uid) { in scn_list_remove()
586 p->uid = uid; in new_scn_portal()
859 raw->uid = uid; in make_raw_iscsi()
973 raw->uid = uid; in make_raw_assoc_iscsi()
1069 text->uid = raw->uid; in scn_gen_iscsi()
1144 text->uid = uid; in scn_gen_portal()
1882 list->uid = uid; in scn_list_load()
[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()
59 if (uid > MAXUID) { in setuid()
83 if ((uid == cr->cr_ruid || uid == cr->cr_suid) && in setuid()
92 newcr->cr_uid = uid; in setuid()
132 newcr->cr_ruid = uid; in setuid()
134 newcr->cr_uid = uid; in setuid()
189 seteuid(uid_t uid) in seteuid() argument
201 if (uid > MAXUID) { in seteuid()
220 if (uid == cr->cr_ruid || uid == cr->cr_uid || uid == cr->cr_suid || in seteuid()
[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/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/keyserv/
H A Dsetkey.c115 uid_t uid; member
464 *cpp != NULL && (*cpp)->uid != uid; in mapuid2cache()
509 cp->uid = uid; in appendsecretkey3()
562 uid_t uid; in pk_setkey()
704 uid_t uid; in pk_encrypt()
718 uid_t uid, in pk_encrypt3() argument
794 new->uid = uid;
847 cp->uid = uid; in appendnetname3()
1246 if (l->uid == uid) {
1387 uid_t uid in getdeskey3() argument
[all …]
H A Dkeyserv.c624 uid_t uid; in __key_set_1_svc()
642 uid_t uid; in __key_encrypt_pk_2_svc()
670 uid_t uid; in __key_decrypt_pk_2_svc()
698 uid_t uid; in __key_net_put_2_svc()
723 uid_t uid; in __key_net_get_2_svc()
777 uid_t uid; in __key_encrypt_1_svc()
805 uid_t uid; in __key_decrypt_1_svc()
867 uid_t uid; in __key_getcred_1_svc()
1115 uid_t uid; local
1322 uid_t *uid;
[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/cmd/fs.d/smbclnt/smbiod-svc/
H A Dsmbiod-svc.c64 uid_t uid; member
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()
438 cp->uid = uid; in cmd_start()
474 uid, pid); in cmd_start()
553 uid, (int)pid); in child_gone()
564 uid, (int)pid, x); in child_gone()
[all …]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rexecd.c54 uid_t uid; in selected()
63 if (uid > MAXEPHUID) {
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;
196 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid, &tid));
249 uid_t uid; local
279 uid = (uid_t)-1;
282 uid = pwd->pw_uid;
[all …]
H A Daudit_rexd.c81 selected(uid, user, event, sf) in selected() argument
82 uid_t uid; in selected()
91 if (uid > MAXEPHUID) {
130 info.ai_auid = uid; in audit_rexd_session_setup()
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);
315 if (!selected(uid, user, event, 0))
329 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
[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.c52 authsys_create_uid(uid_t uid, gid_t gid) in authsys_create_uid() argument
78 xdrproc_t xdr_rslt, char *rslt, uid_t uid, gid_t gid) in my_key_call() argument
88 r = (*__key_encryptsession_pk_LOCAL)(uid, arg, &res); in my_key_call()
110 r = (*__key_gendes_LOCAL)(uid, 0, &res); in my_key_call()
131 clnt->cl_auth = authsys_create_uid(uid, gid); in my_key_call()
161 uid_t uid, gid_t gid) in key_setnet_g_uid() argument
215 return (key_setnet_uid(&tmp, uid, gid)); in key_setnet_g_uid()
236 key_secretkey_is_set_uid(uid_t uid, gid_t gid) in key_secretkey_is_set_uid() argument
243 xdr_key_netstres, (char *)&kres, uid, gid) && in key_secretkey_is_set_uid()
256 key_removesecret_g_uid(uid_t uid, gid_t gid) in key_removesecret_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)
192 r = drop_priv(uid, gid);
326 uid_t uid; local
[all …]
/illumos-gate/usr/src/cmd/chown/
H A Dchown.c64 static uid_t uid = (uid_t)-1; variable
228 uid = pwd->pw_uid; 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()
344 CHOWN(argv[c], uid, gid); in main()
380 CHOWN(dir, uid, gid); in chownr()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dchgrp.c126 int uid; /* uid */ member
165 key->uid = key->gid = NOID; in getids()
188 key->uid = n; in getids()
231 int uid; in b_chgrp() local
300 uid = st.st_uid; in b_chgrp()
375 if ((uid = key.uid) != NOID) in b_chgrp()
428 uid = gid = NOID; in b_chgrp()
429 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
436 if (uid == NOID && m->to.uid != NOID) in b_chgrp()
438 uid = m->to.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()
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
203 uid_t uid = (uid_t)-1; in smbfs_keychain_chk() local
214 uid_t uid = (uid_t)-1; in smbfs_keychain_get() local
217 err = smbfs_keychain_cmn(cmd, uid, dom, usr, lmhash, nthash); in smbfs_keychain_get()
228 uid_t uid = getuid(); in smbfs_keychain_del_owner() local
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/
H A Dedquota.c108 uid_t uid; in main() local
156 getprivs(uid); in main()
197 getprivs(uid); in main()
199 putprivs(uid); in main()
200 if (uid == 0) { in main()
214 uid_t uid; in getentry() local
233 return (uid); in getentry()
327 getdiscq(uid); in getprivs()
492 putdiscq(uid); in putprivs()
502 getdiscq(uid); in gettimes()
[all …]
/illumos-gate/usr/src/lib/libsecdb/
H A Dexec_attr.txt45 Device Management:suser:cmd:::/usr/sbin/allocate:uid=0
46 Device Management:suser:cmd:::/usr/sbin/add_drv:uid=0
48 Device Management:suser:cmd:::/usr/sbin/rem_drv:uid=0
50 Device Security:suser:cmd:::/usr/sbin/add_drv:uid=0
51 Device Security:suser:cmd:::/usr/sbin/devfsadm:uid=0
52 Device Security:suser:cmd:::/usr/sbin/eeprom:uid=0
55 Device Security:suser:cmd:::/usr/sbin/rem_drv:uid=0
60 FTP Management:suser:cmd:::/usr/sbin/ftpaddhost:uid=0
61 FTP Management:suser:cmd:::/usr/sbin/ftpconfig:uid=0
238 Primary Administrator:solaris:cmd:::*:uid=0;gid=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>>...26