Searched refs:gid (Results 1 - 15 of 15) sorted by relevance

/sendmail/libsm/
H A Dt-sem.c131 drop_priv(uid, gid)
133 gid_t gid;
137 r = setgid(gid);
158 semtest(owner, uid, gid)
161 gid_t gid;
168 r = drop_priv(uid, gid);
186 r = sm_semsetowner(semid, uid, gid, 0660);
192 r = drop_priv(uid, gid);
327 gid_t gid; local
330 gid
[all...]
H A Dshm.c114 ** gid -- gid to use
123 sm_shmsetowner(shmid, uid, gid, mode)
126 gid_t gid;
136 shmid_ds.shm_perm.gid = gid;
H A Dsem.c211 ** gid -- gid to use
220 sm_semsetowner(semid, uid, gid, mode)
223 gid_t gid;
239 semidds.sem_perm.gid = gid;
H A Dmpeix.c355 ** - setgid() exists, but only supports new gid == current gid (boring!)
356 ** - setuid() forces a gid change to the new uid's primary (and only) gid
366 ** gid/uid management functions getegid(), geteuid(), setgid(), and
377 ** bit is on, then gid emulation will be enabled. If the setuid mode bit is
434 ** SENDMAIL_MPE_EMULGID -- should we perform gid emulation?
437 ** if the setgid bit is on, we want gid emulation and so set
438 ** sendmail_mpe_gidflag to true. Otherwise we do not want gid emulation
445 ** true -- perform gid emulatio
[all...]
/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.c27 ** gid -- group id to compare against.
46 safefile(fn, uid, gid, user, flags, mode, st)
49 GID_T gid;
64 sm_dprintf("safefile(%s, uid=%d, gid=%d, flags=%lx, mode=%o):\n",
65 fn, (int) uid, (int) gid, flags, mode);
116 gid = st->st_gid;
129 ret = safedirpath(".", uid, gid, user,
135 ret = safedirpath(fn, uid, gid, user,
168 ret = safedirpath(".", uid, gid, user, flags, 0, 0);
173 ret = safedirpath(fn, uid, gid, use
[all...]
/sendmail/sendmail/
H A Drecipient.c143 ** send to -- effective uid/gid are important.
1436 volatile gid_t gid; local
1496 gid = DefGid;
1502 gid = ca->q_gid;
1512 if (initgroups(user, gid) == -1)
1516 user, gid);
1524 gidset[0] = gid;
1533 if (gid != 0 && setgid(gid) < -1)
1536 syserr("setgid(%d) failure", gid);
[all...]
H A Dqueue.c989 gid_t gid; local
1009 gid = 0;
1015 gid = q->q_gid;
1031 (long) gid);
4099 "bogus queue file, uid=%d, gid=%d, mode=%o",
4106 loseqfile(e, "bogus file uid/gid in mqueue");
/sendmail/libsmdb/
H A Dsmndbm.c240 smndbm_set_owner(database, uid, gid)
243 gid_t gid;
254 result = fchown(fd, uid, gid);
262 result = fchown(fd, uid, gid);
H A Dsmdb1.c275 smdb1_set_owner(database, uid, gid)
278 gid_t gid;
289 result = fchown(fd, uid, gid);
H A Dsmdb2.c321 smdb2_set_owner(database, uid, gid)
324 gid_t gid;
335 result = fchown(fd, uid, gid);
/sendmail/include/libsmdb/
H A Dsmdb.h153 ** gid -- The GID 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.c1128 gid_t gid = user.mbdb_gid; local
1132 gid = MAILGID;
1157 else if (fchown(mbfd, user.mbdb_uid, gid) < 0)
1160 user.mbdb_uid, gid, name);

Completed in 378 milliseconds