Searched refs:RealUid (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dpraliases.c44 uid_t RealUid; variable
75 RunAsUid = RealUid = getuid();
77 pw = getpwuid(RealUid);
86 "Unknown UID %d", (int) RealUid);
H A Deditmap.c47 uid_t RealUid; variable
122 RunAsUid = RealUid = getuid();
124 pw = getpwuid(RealUid);
129 "Unknown UID %d", (int) RealUid);
H A Dmakemap.c43 uid_t RealUid; variable
127 RunAsUid = RealUid = getuid();
129 pw = getpwuid(RealUid);
134 "Unknown UID %d", (int) RealUid);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmain.c243 RealUid = getuid();
247 extraprivs = (RealUid != 0 &&
542 pw = sm_getpwuid(RealUid);
547 (int) RealUid);
563 if (RealUid != 0 && geteuid() == RealUid)
566 sm_dprintf("Non-set-user-ID binary: RunAsUid = RealUid = %d\n",
567 (int) RealUid);
568 RunAsUid = RealUid;
574 if (RealUid !
[all...]
H A Ddeliver.c2568 if (RealUid != 0 && RealUid != getuid())
2572 if (setreuid(RealUid, geteuid()) < 0)
2575 (int) RealUid, (int) geteuid());
2581 new_ruid = RealUid;
5316 RealUid = RunAsUid;
5318 RealUid = mailer->m_uid;
5319 if (RunAsUid != 0 && RealUid != RunAsUid)
5322 syserr("mailfile: insufficient privileges to change uid, RunAsUid=%d, RealUid=%d",
5323 (int) RunAsUid, (int) RealUid);
[all...]
H A Derr.c207 pw = sm_getpwuid(RealUid);
213 (void) sm_snprintf(ubuf, sizeof(ubuf), "UID%d", (int) RealUid);
H A Drecipient.c1330 euid = RealUid;
1694 if (setreuid(RealUid, 0) < 0)
1696 (int) RealUid, (int) getuid(),
H A Dreadcf.c1122 else if (RealUid == 0)
2512 if (!safe && RealUid == 0)
2877 if (RealUid != 0 && !safe)
3568 if (!bitset(SUBMIT_MSA, SubmitMode) && RealUid != 0 &&
3569 RunAsUid != RealUid)
H A Dconf.c288 FileMode = (RealUid != geteuid()) ? 0644 : 0600;
290 QueueFileMode = (RealUid != geteuid()) ? 0644 : 0600;
1123 pw = sm_getpwuid(RealUid);
1129 uid_t uid = RealUid;
H A Denvelope.c1158 e->e_from.q_uid = RealUid;
H A Dqueue.c4041 geteuid() != RealUid;
4821 if (bitset(PRIV_RESTRICTMAILQ, PrivacyFlags) && RealUid != 0)
6773 if (TrustedUid != 0 && RealUid == TrustedUid)
6829 if (RealUid == 0 || (TrustedUid != 0 && RealUid == TrustedUid))
H A Ddaemon.c3137 ** be root, and RealUid should be either 0 or RunAsUid.
3141 (RealUid == 0 || RealUid == RunAsUid));
H A Dsavemail.c376 if (RealUid == 0)
H A Dsrvrsmtp.c2409 if (RealUid != 0 && OpMode == MD_SMTP &&
3020 (RealUid != 0 && RealUid != TrustedUid &&
H A Dsendmail.h2321 EXTERN uid_t RealUid; /* real uid of caller */ variable
H A Dutil.c588 if (TrustedUid != 0 && RealUid == TrustedUid)
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c78 if (RealUid != 0 && RunAsUid == RealUid)
724 rval = safefile(fn, RealUid, RealGid, RealUserName,

Completed in 158 milliseconds