Home
last modified time | relevance | path

Searched refs:ruid (Results 1 – 25 of 47) sorted by relevance

12

/titanic_51/usr/src/uts/common/syscall/
H A Duid.c102 * The ruid of the process is going to change. In order in setuid()
104 * process-count associated with the newly given ruid, in setuid()
155 * to match the increment above, even if the ruid of the process in setuid()
264 setreuid(uid_t ruid, uid_t euid) in setreuid() argument
270 uid_t oldruid = ruid; in setreuid()
276 if ((ruid != -1 && !VALID_UID(ruid, zone)) || in setreuid()
302 if (ruid != -1 && ruid != cr->cr_ruid && ruid ! in setreuid()
[all...]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/
H A Dksh-regress.tst21 ksh:REGRESS:euid:geteuid:euid!=ruid'
29 ksh:REGRESS:euid:geteuid:euid!=ruid
31 ksh:REGRESS:euid:setuid:euid==ruid'
39 ksh:REGRESS:euid:geteuid:euid!=ruid
46 ksh:REGRESS:euid:geteuid:euid!=ruid'
54 ksh:REGRESS:euid:geteuid:euid!=ruid
56 ksh:REGRESS:euid:setuid:euid==ruid'
64 ksh:REGRESS:euid:geteuid:euid!=ruid
101 ksh:REGRESS:euid:geteuid:euid!=ruid'
109 ksh:REGRESS:euid:geteuid:euid!=ruid
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/preroot/
H A Dispreroot.c46 int ruid; in same() local
51 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid); in same()
53 if (ruid != euid) setuid(euid); in same()
H A Dgetpreroot.c70 int ruid; in getpreroot() local
82 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid); in getpreroot()
115 if (ruid != euid) setuid(euid); in getpreroot()
156 if (ruid != euid) setuid(euid); in getpreroot()
/titanic_51/usr/src/lib/libast/common/preroot/
H A Dispreroot.c46 int ruid; in same() local
51 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid); in same()
53 if (ruid != euid) setuid(euid); in same()
H A Dgetpreroot.c70 int ruid; in getpreroot() local
82 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid); in getpreroot()
115 if (ruid != euid) setuid(euid); in getpreroot()
156 if (ruid != euid) setuid(euid); in getpreroot()
/titanic_51/usr/src/cmd/auditreduce/
H A Dtoken.c904 * ruid adr_int32
913 int32_t auid, euid, egid, ruid, rgid, pid; in process32_token() local
920 adrm_int32(adr, &ruid, 1); in process32_token()
936 if (m_userr == ruid) in process32_token()
958 (obj_group == ruid))) { in process32_token()
971 * ruid adr_int32
983 int32_t auid, euid, egid, ruid, rgid, pid; in process32_ex_token() local
991 adrm_int32(adr, &ruid, 1); in process32_ex_token()
1008 if (m_userr == ruid) in process32_ex_token()
1030 (obj_group == ruid))) { in process32_ex_token()
1052 int32_t auid, euid, egid, ruid, rgid, pid; process64_token() local
1123 int32_t auid, euid, egid, ruid, rgid, pid; process64_ex_token() local
1304 int32_t auid, euid, egid, ruid, rgid, pid; subject32_token() local
1367 int32_t auid, euid, egid, ruid, rgid, pid; subject32_ex_token() local
1429 int32_t auid, euid, egid, ruid, rgid, pid; subject64_token() local
1493 int32_t auid, euid, egid, ruid, rgid, pid; subject64_ex_token() local
[all...]
/titanic_51/usr/src/uts/common/io/
H A Dptms_conf.c113 * int ptms_minor_valid(minor_t minor, uid_t *ruid, gid_t *rgid)
127 * void ptms_set_owner(minor_t minor, uid_t ruid, gid_t rgid)
423 ptms_set_owner(minor_t dminor, uid_t ruid, gid_t rgid) in ptms_set_owner() argument
427 ASSERT(ruid >= 0); in ptms_set_owner()
430 if (ruid < 0 || rgid < 0) in ptms_set_owner()
443 pt->pt_ruid = ruid; in ptms_set_owner()
458 ptms_minor_valid(minor_t dminor, uid_t *ruid, gid_t *rgid) in ptms_minor_valid() argument
463 ASSERT(ruid); in ptms_minor_valid()
466 *ruid = (uid_t)-1; in ptms_minor_valid()
474 *ruid in ptms_minor_valid()
[all...]
/titanic_51/usr/src/cmd/cron/
H A Dcrontab.c131 uid_t ruid; in main() local
178 ruid = getuid(); in main()
179 if ((pwp = getpwuid(ruid)) == NULL) in main()
191 if (pwp->pw_uid != ruid) in main()
194 pp = getuser(ruid); in main()
198 pp = getuser(ruid); in main()
226 if (audit_crontab_not_allowed(ruid, pp)) in main()
253 if (fchown(tmpfd, ruid, -1) == -1) { in main()
266 setuid(ruid); in main()
372 * unlink edtemp as 'ruid' in main()
[all...]
/titanic_51/usr/src/lib/libbc/libc/gen/common/
H A Dsetruid.c30 setruid(int ruid) in setruid() argument
33 return (setreuid(ruid, -1)); in setruid()
/titanic_51/usr/src/lib/libast/common/comp/
H A Deaccess.c56 static uid_t ruid;
63 ruid = getuid();
67 init = (ruid == euid && rgid == egid) ? 1 : -1;
/titanic_51/usr/src/contrib/ast/src/lib/libast/comp/
H A Deaccess.c56 static uid_t ruid;
63 ruid = getuid();
67 init = (ruid == euid && rgid == egid) ? 1 : -1;
/titanic_51/usr/src/lib/libbsm/common/
H A Dadt.c1525 adt_newuser(adt_internal_state_t *state, uid_t ruid, au_tid_addr_t *termid) in adt_newuser() argument
1530 if (ruid == ADT_NO_AUDIT) { in adt_newuser()
1537 state->as_info.ai_auid = ruid; in adt_newuser()
1538 state->as_info.ai_asid = adt_get_unique_id(ruid); in adt_newuser()
1542 if (adt_get_mask_from_user(ruid, &(state->as_info.ai_mask))) in adt_newuser()
1561 adt_changeuser(adt_internal_state_t *state, uid_t ruid) in adt_changeuser() argument
1566 state->as_info.ai_auid = ruid; in adt_changeuser()
1568 state->as_info.ai_asid = adt_get_unique_id(ruid); in adt_changeuser()
1570 if (ruid <= MAXEPHUID) { in adt_changeuser()
1571 if (adt_get_mask_from_user(ruid, in adt_changeuser()
1608 adt_set_user(const adt_session_data_t * session_data,uid_t euid,gid_t egid,uid_t ruid,gid_t rgid,const adt_termid_t * termid,enum adt_user_context user_context) adt_set_user() argument
[all...]
H A Daudit_ftpd.c135 uid_t ruid; /* real uid */ in generate_record() local
164 ruid = getuid(); /* get real uid */ in generate_record()
178 ruid, rgid, pid, pid, &info.ai_termid)); in generate_record()
H A Daudit_crontab.c253 * audited, then the ruid of the user doing the editing must be the owner
256 * When audit_crontab_not_allowed is called, ruid is for the crontab file
263 audit_crontab_not_allowed(uid_t ruid, char *user) { in audit_crontab_not_allowed() argument
271 } else if (ruid == pwd.pw_uid) in audit_crontab_not_allowed()
H A Dau_to.c431 au_to_process(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process() argument
454 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_process()
474 au_to_process_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process_ex() argument
507 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_process_ex()
583 au_to_subject(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_subject() argument
606 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_subject()
627 au_to_subject_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_subject_ex() argument
663 adr_int32(&adr, (int32_t *)&ruid, 1); in au_to_subject_ex()
/titanic_51/usr/src/lib/libadt_jni/com/sun/audit/
H A DAuditSession.java67 int euid, int egid, int ruid, int rgid, in sessionAttr() argument
204 public void setUser(int euid, int egid, int ruid, int rgid, in setUser() argument
209 sessionAttr(sh, euid, egid, ruid, rgid, in setUser()
/titanic_51/usr/src/cmd/print/bsd-sysv-commands/
H A Dlp.c82 uid_t ruid; in main() local
88 ruid = getuid(); in main()
89 if ((pw = getpwuid(ruid)) != NULL) in main()
91 (void) setuid(ruid); in main()
/titanic_51/usr/src/cmd/power/
H A Dparse.c131 if ((ruid = getuid()) == 0) { in lookup_perms()
134 } else if ((pent = getpwuid(ruid)) != NULL) { in lookup_perms()
145 cons_perm = (ruid == stbuf.st_uid); in lookup_perms()
203 if (seteuid(ruid) == -1) in pmc_open()
205 ruid, strerror(errno)); in pmc_open()
H A Dconf.c81 uid_t ruid; variable
185 if (ruid) in get_cpr_info()
192 if (ruid) in get_cpr_info()
530 mesg(MDEBUG, "ruid %d, perms: cpr %d, pm %d\n", in main()
531 ruid, cpr_status.perm, pm_status.perm); in main()
/titanic_51/usr/src/cmd/cdrw/
H A Dmain.c64 uid_t ruid, cur_uid; variable
232 ruid = getuid(); in main()
235 if (check_auth(ruid) != 1) { in main()
241 if ((cur_uid == 0) && (ruid != 0)) { in main()
H A Dutil.c248 if (seteuid(ruid) == 0) in lower_priv()
249 cur_uid = ruid; in lower_priv()
H A Dmain.h54 extern uid_t ruid, cur_uid;
/titanic_51/usr/src/cmd/sh/
H A Dmain.c192 uid_t ruid; in main() local
204 ruid = getuid(); in main()
207 if ((euid != ruid) && (euid < 100)) in main()
208 setuid(ruid); /* reset the uid to the orig user */ in main()
/titanic_51/usr/src/lib/libc/port/gen/
H A Dprivlib.c607 uid_t ruid, euid; in __init_suid_priv() local
613 ruid = getuid(); in __init_suid_priv()
615 if (ruid == 0) in __init_suid_priv()
675 r = setreuid(ruid, ruid); in __init_suid_priv()
683 (void) setreuid(ruid, ruid); in __init_suid_priv()

12