Searched refs:geteuid (Results 1 - 22 of 22) sorted by relevance

/sendmail/test/
H A Dt_setuid.c37 (int) getuid(), (int) geteuid());
50 if (geteuid() != 0)
66 if (geteuid() != 1)
91 if (geteuid() != 1)
H A Dt_seteuid.c42 (int) getuid(), (int) geteuid());
55 if (geteuid() != 0)
71 if (geteuid() != 1)
86 if (geteuid() != 0)
105 if (geteuid() != 2)
120 if (geteuid() != 0)
H A Dt_setreuid.c39 (int) getuid(), (int) geteuid());
52 if (geteuid() != 0)
77 if (geteuid() != 1)
98 if (geteuid() != 0)
117 if (geteuid() != 2)
144 if (geteuid() != 0)
H A Dt_pathconf.c42 if (geteuid() == 0)
/sendmail/sendmail/
H A Drecipient.c1314 if (geteuid() != 0)
1316 euid = geteuid();
1364 if (geteuid() == 0 &&
1450 (int) getuid(), (int) geteuid());
1459 (int) getuid(), (int) geteuid());
1482 if ((geteuid() != 0 || RunAsUid != 0) &&
1487 (int) geteuid(), (int) RunAsUid);
1506 saveduid = geteuid();
1546 uid, (int) getuid(), (int) geteuid());
1555 uid, (int) getuid(), (int) geteuid());
[all...]
H A Dmain.c244 (geteuid() != getuid() || getegid() != getgid()));
562 if (RealUid != 0 && geteuid() == RealUid)
569 else if (geteuid() != 0)
570 RunAsUid = geteuid();
579 (int) geteuid(), (int) getuid(),
1265 if (RealUid != 0 && RealUid != geteuid())
1267 uid_t new_uid = geteuid();
1281 if (setreuid(new_uid, geteuid()) < 0)
1284 (int) new_uid, (int) geteuid());
1290 (int) geteuid(), (in
[all...]
H A Dcontrol.c114 if (geteuid() == 0)
H A Dqueue.c408 tf, (int) geteuid(), tfd, tfp);
431 tf, (int) geteuid(),
477 tf, (int) geteuid());
522 queuename(e, DATAFL_LETTER), (int) geteuid());
564 df, (int) geteuid());
599 df, (int) geteuid());
892 tf, qf, (int) geteuid());
2014 if (geteuid() == (uid_t) 0)
4053 bogus = st.st_uid != geteuid() &&
4055 geteuid() !
[all...]
H A Ddeliver.c1342 suidwarn = geteuid() == 0;
2580 if (setreuid(RealUid, geteuid()) < 0)
2583 (int) RealUid, (int) geteuid());
2645 if (new_euid != geteuid() && setuid(new_euid) < 0 && suidwarn)
2666 (int) getuid(), (int) geteuid(),
5117 bool suidwarn = geteuid() == 0;
5478 (int) getuid(), (int) geteuid(),
H A Dcollect.c1030 dfname, msg, (int) geteuid(), (int) getegid());
H A Dutil.c2127 if (setgid(DefGid) < 0 && geteuid() == 0)
2132 if (setuid(DefUid) < 0 && geteuid() == 0)
H A Dconf.c286 FileMode = (RealUid != geteuid()) ? 0644 : 0600;
288 QueueFileMode = (RealUid != geteuid()) ? 0644 : 0600;
3601 uid_t euid = geteuid();
3631 uid_t euid = geteuid();
H A Denvelope.c582 (int) geteuid());
H A Dmap.c1634 if (geteuid() == 0 && TrustedUid != 0)
2249 if (geteuid() == 0 && TrustedUid != 0)
/sendmail/libsm/
H A Dmpeix.c366 ** gid/uid management functions getegid(), geteuid(), setgid(), and
521 ** SENDMAIL_MPE_GETEUID -- shadow function for geteuid()
524 ** return the value of the real geteuid() function.
538 #undef geteuid macro
544 return geteuid();
/sendmail/libsmdb/
H A Dsmdb.c126 int euid = (int) geteuid();
146 int euid = (int) geteuid();
/sendmail/makemap/
H A Dmakemap.c237 if (!unmake && geteuid() == 0)
346 if (!unmake && geteuid() == 0 && TrustedUid != 0)
/sendmail/mail.local/
H A Dmail.local.c1200 (int) getuid(), (int) geteuid());
1204 fprintf(stderr, "new euid = %d\n", (int) geteuid());
1287 fprintf(stderr, "before writing: euid = %d\n", (int) geteuid());
1343 fprintf(stderr, "reset euid = %d\n", (int) geteuid());
1415 fprintf(stderr, "reset euid = %d\n", (int) geteuid());
/sendmail/editmap/
H A Deditmap.c308 if (geteuid() == 0 && TrustedUid != 0)
/sendmail/libmilter/
H A Dlistener.c605 geteuid() != 0 &&
/sendmail/libsmutil/
H A Dsafefile.c632 if (geteuid() != 0 || bitset(SFF_OPENASROOT, flags))
/sendmail/include/sm/
H A Dconf.h1881 # define geteuid sendmail_mpe_geteuid macro

Completed in 3579 milliseconds