Lines Matching refs:uid
320 ** uid -- uid to obtain passwd data for
330 sendmail_mpe_getpwuid(uid)
331 uid_t uid;
335 if ((result = getpwuid(uid)) != NULL)
353 ** - there is no uid 0 superuser
356 ** - setuid() forces a gid change to the new uid's primary (and only) gid
361 ** sendmail, because there are only about a zillion references to uid 0
366 ** gid/uid management functions getegid(), geteuid(), setgid(), and
369 ** - the sendmail program thinks it is a setuid-root (uid 0) program
370 ** - uid 0 is recognized as being valid, but does not grant extra powers
371 ** - MPE priv mode allows sendmail to call setuid(), not uid 0
372 ** - file access is still controlled by the real non-zero uid
378 ** on, then uid emulation will be enabled. So for the mail daemon, we need
465 ** SENDMAIL_MPE_EMULUID -- should we perform uid emulation?
468 ** if the setuid bit is on, we want uid emulation and so set
469 ** sendmail_mpe_uidflag to true. Otherwise we do not want uid emulation
476 ** true -- perform uid emulation
477 ** false -- do not perform uid emulation
551 ** function. Implement the expected uid 0 semantics.
587 ** working directory to be the home directory of the new uid. Thus
590 ** Note that expected uid 0 semantics have been added, as well as
591 ** remembering the new uid for later use by the other shadow functions.
594 ** uid -- desired uid.
606 sendmail_mpe_setuid(uid)
607 uid_t uid;
617 if (uid == 0)
633 result = setuid(uid);
640 sendmail_mpe_euid = uid;
644 return setuid(uid);