/freebsd/contrib/sendmail/src/ |
H A D | control.c | 78 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 D | main.c | 582 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 D | queue.c | 6126 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 D | deliver.c | 3236 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 D | readcf.c | 3243 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 D | daemon.c | 1107 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 D | recipient.c | 1501 if ((geteuid() != 0 || RunAsUid != 0) && 1506 (long) geteuid(), (long) RunAsUid);
|
H A D | alias.c | 1085 if (LogLevel > (RunAsUid == 0 ? 2 : 10))
|
H A D | map.c | 1731 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 D | tls.c | 626 if ((ret = safefile(var, RunAsUid, RunAsGid, RunAsUserName, sff,
|
H A D | sendmail.h | 2658 EXTERN uid_t RunAsUid; /* UID to become for bulk of run */ variable
|
H A D | usersmtp.c | 1422 if ((r = safefile(p, RunAsUid, RunAsGid, RunAsUserName, sff,
|
H A D | milter.c | 776 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,
|
/freebsd/contrib/sendmail/editmap/ |
H A D | editmap.c | 49 uid_t RunAsUid; variable 120 RunAsUid = RealUid = getuid(); 129 user_info.smdbu_id = RunAsUid;
|
/freebsd/contrib/sendmail/praliases/ |
H A D | praliases.c | 47 uid_t RunAsUid; variable 75 RunAsUid = RealUid = getuid(); 303 user_info.smdbu_id = RunAsUid;
|
/freebsd/contrib/sendmail/makemap/ |
H A D | makemap.c | 48 uid_t RunAsUid; variable 403 RunAsUid = RealUid = getuid(); 412 user_info.smdbu_id = RunAsUid;
|
/freebsd/contrib/sendmail/libsmutil/ |
H A D | safefile.c | 77 if (RealUid != 0 && RunAsUid == RealUid) 720 rval = safefile(fn, RunAsUid, RunAsGid, RunAsUserName,
|
/freebsd/contrib/sendmail/vacation/ |
H A D | vacation.c | 45 uid_t RunAsUid; variable 163 RunAsUid = RealUid = getuid();
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | listener.c | 253 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,
|