Searched refs:uid (Results 1 - 16 of 16) sorted by relevance

/sendmail/libsm/
H A Dt-sem.c131 drop_priv(uid, gid)
132 uid_t uid;
140 r = setuid(uid);
158 semtest(owner, uid, gid)
160 uid_t uid;
166 if (!owner && uid != 0)
168 r = drop_priv(uid, gid);
184 if (uid != 0)
186 r = sm_semsetowner(semid, uid, gid, 0660);
192 r = drop_priv(uid, gi
326 uid_t uid; local
[all...]
H A Dshm.c113 ** uid -- uid to use
123 sm_shmsetowner(shmid, uid, gid, mode)
125 uid_t uid;
135 shmid_ds.shm_perm.uid = uid;
H A Dmpeix.c320 ** 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
[all...]
H A Dsem.c210 ** uid -- uid to use
220 sm_semsetowner(semid, uid, gid, mode)
222 uid_t uid;
238 semidds.sem_perm.uid = uid;
/sendmail/contrib/
H A Dpasswd-to-alias.pl13 ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = @a;
H A Dre-mqueue.pl155 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
H A Dbuildvirtuser121 chown($st->uid, $st->gid, $new) || warn "Could not chmod($st->uid, $st->gid, $new): $!\n";
/sendmail/libsmutil/
H A Dsafefile.c26 ** uid -- user id to compare against.
31 ** SFF_MUSTOWN -- "uid" must own this file.
38 ** 0 if fn exists, is owned by uid, and matches mode.
46 safefile(fn, uid, gid, user, flags, mode, st)
48 UID_T uid;
64 sm_dprintf("safefile(%s, uid=%d, gid=%d, flags=%lx, mode=%o):\n",
65 fn, (int) uid, (int) gid, flags, mode);
108 uid = st->st_uid;
120 (uid == 0 && !bitset(SFF_ROOTOK|SFF_OPENASROOT, flags));
129 ret = safedirpath(".", uid, gi
[all...]
/sendmail/sendmail/
H A Drecipient.c143 ** send to -- effective uid/gid are important.
1278 ** won't necessarily be the real uid when we try to
1435 volatile uid_t uid; local
1458 sm_dprintf("include: old uid = %d/%d\n",
1495 uid = DefUid;
1501 uid = ca->q_uid;
1539 if (uid != 0)
1542 if (seteuid(uid) < 0)
1546 uid, (int) getuid(), (int) geteuid());
1551 if (setreuid(0, uid) <
[all...]
H A Dconf.c1134 uid_t uid = RealUid; local
1137 (uid != 0 && uid != pw->pw_uid))
1139 pw = sm_getpwuid(uid);
1329 ** won't let it call set*uid() or run setuid binaries without
3885 int DefShareUid; /* default share uid to run as -- unused??? */
3948 ** uid -- the uid we are about to become.
3955 vendor_set_uid(uid)
3956 UID_T uid;
[all...]
H A Dqueue.c476 syserr("!queueup: cannot create queue temp file %s, uid=%d",
521 syserr("!queueup: cannot commit data file %s, uid=%d",
563 syserr("!queueup: cannot create data temp file %s, uid=%d",
598 syserr("!queueup: cannot save data temp file %s, uid=%d",
891 syserr("cannot rename(%s, %s), uid=%d",
978 ** The last control address and uid are saved.
988 uid_t uid; local
1003 /* find the active uid */
1008 uid = 0;
1014 uid
[all...]
/sendmail/libsmdb/
H A Dsmndbm.c240 smndbm_set_owner(database, uid, gid)
242 uid_t uid;
254 result = fchown(fd, uid, gid);
262 result = fchown(fd, uid, gid);
H A Dsmdb1.c275 smdb1_set_owner(database, uid, gid)
277 uid_t uid;
289 result = fchown(fd, uid, gid);
H A Dsmdb2.c321 smdb2_set_owner(database, uid, gid)
323 uid_t uid;
335 result = fchown(fd, uid, gid);
/sendmail/include/libsmdb/
H A Dsmdb.h152 ** uid -- The UID for the new owner (-1 for no change)
160 typedef int (*db_set_owner_func) __P((SMDB_DATABASE *db, uid_t uid, gid_t gid));
/sendmail/mail.local/
H A Dmail.local.c206 uid_t uid; local
389 ** uid matches, otherwise, use the name from the password file
390 ** corresponding to the uid.
393 uid = getuid();
396 pw->pw_uid != uid))
397 from = (pw = getpwuid(uid)) != NULL ? pw->pw_name : "???";

Completed in 641 milliseconds