Home
last modified time | relevance | path

Searched refs:RunAsUid (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/sendmail/src/
H A Dcontrol.c78 rval = safefile(ControlSocketName, RunAsUid, RunAsGid, RunAsUserName, in opencontrolsocket()
117 if (RunAsUid != 0) in opencontrolsocket()
118 u = RunAsUid; in opencontrolsocket()
187 rval = safefile(ControlSocketName, RunAsUid, RunAsGid,
H A Dmain.c582 RunAsUid = RealUid;
585 RunAsUid = geteuid();
597 (int) RunAsUid, (int) RunAsGid);
3843 (long) RunAsUid, (long) RunAsGid);
3848 RunAsUid = RealUid;
3932 if (to_real_uid || RunAsUid != 0)
3943 if (setuid(RunAsUid) < 0 ||
3944 geteuid() != RunAsUid ||
3945 (getuid() != RunAsUid &&
3955 if (geteuid() == RunAsUid)
[all …]
H A Dqueue.c6126 i = safedirpath(name, RunAsUid, RunAsGid, NULL, sff, 0, 0);
6201 if (RunAsUid == 0)
6321 i = safedirpath(basedir, RunAsUid, RunAsGid, NULL,
6428 i = safedirpath(qpath, RunAsUid, RunAsGid, NULL, sff, 0, 0);
6786 if (owner && RunAsUid != 0)
6790 r = sm_semsetowner(SemId, RunAsUid, RunAsGid, 0660);
6794 (long) SemKey, r, (long) RunAsUid, (long) RunAsGid);
7043 if (geteuid() == 0 && RunAsUid != 0)
7049 if (fd >= 0 && fchown(fd, RunAsUid, -1) < 0)
7055 keypath, (long) RunAsUid, sm_errstring(err));
[all …]
H A Ddeliver.c3236 if (RunAsUid != 0 &&
3243 (long) RunAsUid, (long) new_gid,
3282 new_euid = RunAsUid;
3336 if (RunAsUid != 0 && new_euid != RunAsUid)
3340 (long) new_euid, (long) RunAsUid);
6542 RealUid = RunAsUid;
6545 if (RunAsUid != 0 && RealUid != RunAsUid)
6549 (long) RunAsUid, (long) RealUid);
6584 if (RunAsUid != 0 &&
6590 (long) RealGid, (long) RunAsUid,
H A Dreadcf.c3243 bool can_setuid = RunAsUid == 0;
4155 RunAsUid = atoi(val);
4171 RunAsUid = pw->pw_uid;
4183 if (RunAsUid > UID_MAX)
4186 (long) RunAsUid, (long) UID_MAX);
4226 (int) RunAsUid, (int) RunAsGid);
4455 RunAsUid != RealUid)
H A Ddaemon.c1107 RunAsUid, RunAsGid,
3145 rval = safefile(mux_path, RunAsUid, RunAsGid, RunAsUserName,
3274 RunAsUid, RunAsGid, in shutdown_daemon()
3360 drop = !(UseMSP && RunAsUid != 0 && in restart_daemon()
3361 (RealUid == 0 || RealUid == RunAsUid)); in restart_daemon()
H A Drecipient.c1501 if ((geteuid() != 0 || RunAsUid != 0) &&
1506 (long) geteuid(), (long) RunAsUid);
H A Dalias.c1085 if (LogLevel > (RunAsUid == 0 ? 2 : 10))
H A Dmap.c1731 ret = safefile(dirfile, RunAsUid, RunAsGid, RunAsUserName,
1734 ret = safefile(pagfile, RunAsUid, RunAsGid, RunAsUserName,
2309 i = safefile(buf, RunAsUid, RunAsGid, RunAsUserName, sff, smode, &st);
2924 status = safefile(buf, RunAsUid, RunAsGid, RunAsUserName, sff, smode, &st);
6439 if ((i = safefile(map->map_file, RunAsUid, RunAsGid, RunAsUserName,
8435 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,
H A Dtls.c626 if ((ret = safefile(var, RunAsUid, RunAsGid, RunAsUserName, sff,
H A Dsendmail.h2658 EXTERN uid_t RunAsUid; /* UID to become for bulk of run */ variable
H A Dusersmtp.c1422 if ((r = safefile(p, RunAsUid, RunAsGid, RunAsUserName, sff,
H A Dmilter.c776 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,
/freebsd/contrib/sendmail/editmap/
H A Deditmap.c49 uid_t RunAsUid; variable
120 RunAsUid = RealUid = getuid();
129 user_info.smdbu_id = RunAsUid;
/freebsd/contrib/sendmail/praliases/
H A Dpraliases.c47 uid_t RunAsUid; variable
75 RunAsUid = RealUid = getuid();
303 user_info.smdbu_id = RunAsUid;
/freebsd/contrib/sendmail/makemap/
H A Dmakemap.c48 uid_t RunAsUid; variable
403 RunAsUid = RealUid = getuid();
412 user_info.smdbu_id = RunAsUid;
/freebsd/contrib/sendmail/libsmutil/
H A Dsafefile.c77 if (RealUid != 0 && RunAsUid == RealUid)
720 rval = safefile(fn, RunAsUid, RunAsGid, RunAsUserName,
/freebsd/contrib/sendmail/vacation/
H A Dvacation.c45 uid_t RunAsUid; variable
163 RunAsUid = RealUid = getuid();
/freebsd/contrib/sendmail/libmilter/
H A Dlistener.c253 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,