Searched refs:setuid (Results 1 - 7 of 7) sorted by relevance
/sendmail/test/ |
H A D | t_setuid.c | 12 ** This program checks to see if your version of setuid works. 62 if (setuid(1) < 0) 63 printf("setuid(1) failure\n"); 64 printuids("after setuid(1)", 1, 1); 80 if (setuid(0) == 0) 83 printf("MAYDAY! setuid(0) succeeded (should have failed)\n"); 87 printf("setuid(0) failed (this is correct)\n"); 89 printuids("after setuid(0)", 1, 1); 105 printf("\nThis system cannot use setuid (maybe use setreuid)\n"); 109 printf("\nIt is safe to use setuid o [all...] |
/sendmail/libsm/ |
H A D | mpeix.c | 354 ** - setuid/setgid file permission bits exist but have no-op functionality 356 ** - setuid() forces a gid change to the new uid's primary (and only) gid 367 ** setuid() in order to implement the following model: 369 ** - the sendmail program thinks it is a setuid-root (uid 0) program 371 ** - MPE priv mode allows sendmail to call setuid(), not uid 0 376 ** setuid mode bits which exist but are unused by MPE. If the setgid mode 377 ** bit is on, then gid emulation will be enabled. If the setuid mode bit is 468 ** if the setuid bit is on, we want uid emulation and so set 527 ** a setuid-root program. 553 ** Note that sendmail will also be calling setuid() whic 604 #undef setuid macro [all...] |
H A D | t-sem.c | 140 r = setuid(uid);
|
/sendmail/sendmail/ |
H A D | main.c | 1299 if (setuid(new_uid) < 0) 1301 syserr("main: setuid(%d) failed", (int) new_uid); 2925 (void) setuid(RealUid); 3054 (void) setuid(RealUid); 3687 ** EX_OSERR if the setuid failed. 3798 ** Try to setuid(RunAsUid). 3804 if (setuid(RunAsUid) < 0 || 3813 ** setuid() to drop the saved-uid as well. 3824 if (setuid(RunAsUid) < 0) 3826 syserr("drop_privileges: second setuid( [all...] |
H A D | deliver.c | 2645 if (new_euid != geteuid() && setuid(new_euid) < 0 && suidwarn) 2647 syserr("openmailer: setuid(%ld) failed", 2656 if (setuid(new_ruid) < 0 && suidwarn) 2658 syserr("openmailer: setuid(%ld) failed", 5303 /* we have to open the data file BEFORE setuid() */ 5470 if (setuid(RealUid) < 0 && suidwarn) 5472 syserr("mailfile: setuid(%ld) failed", (long) RealUid); 5632 (void) setuid(RealUid);
|
H A D | util.c | 2132 if (setuid(DefUid) < 0 && geteuid() == 0) 2134 syserr("prog_open: setuid(%ld) failed", (long) DefUid);
|
/sendmail/include/sm/ |
H A D | conf.h | 1885 # define setuid sendmail_mpe_setuid macro 2621 ** Pick a mailer setuid method for changing the current uid
|
Completed in 103 milliseconds