Searched refs:sff (Results 1 - 25 of 25) sorted by relevance

/sendmail/libsmdb/
H A Dsmdb.c174 ** sff -- Flags to safefile.
190 smdb_open_database(database, db_name, mode, mode_mask, sff, type, user_info,
196 long sff;
224 result = smdb_db_open(database, db_name, mode, mode_mask, sff,
243 sff, type, user_info, params);
308 ** sff -- Flags to safefile.
316 smdb_lock_file(lock_fd, db_name, mode, sff, extension)
320 long sff;
331 *lock_fd = safeopen(file_name, mode & ~O_TRUNC, DBMMODE, sff);
420 ** sff
[all...]
H A Dsmndbm.c471 ** sff -- Flags to safefile.
489 smdb_ndbm_open(database, db_name, mode, mode_mask, sff, type, user_info,
495 long sff;
516 sff, user_info, &dir_stat_info);
521 sff, user_info, &pag_stat_info);
531 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
541 result = smdb_lock_file(&pag_fd, db_name, mode, sff,
H A Dsmdb1.c430 ** sff -- Flags for safefile.
448 smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info,
454 long sff;
484 sff, user_info, &stat_info);
493 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
H A Dsmdb2.c545 ** sff -- Flags for safefile.
566 smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info, db_params)
571 long sff;
601 mode_mask, sff, user_info, &stat_info);
611 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
/sendmail/libsmutil/
H A Dsafefile.c674 ** sff -- safefile flags.
681 safeopen(fn, omode, cmode, sff)
685 long sff;
696 sm_dprintf("safeopen: fn=%s, omode=%x, cmode=%x, sff=%lx\n",
697 fn, omode, cmode, sff);
700 sff |= SFF_CREAT;
720 if (bitset(SFF_OPENASROOT, sff))
722 sff, smode, &stb);
725 sff, smode, &stb);
731 if (stb.st_mode == ST_MODE_NOFILE && bitset(SFF_CREAT, sff))
[all...]
/sendmail/sendmail/
H A Dstats.c137 long sff = SFF_REGONLY|SFF_OPENASROOT; local
151 sff |= SFF_NOSLINK;
153 sff |= SFF_NOHLINK;
155 fd = safeopen(sfile, O_RDWR, 0600, sff);
H A Dtls.c147 long sff; local
151 sff = SFF_SAFEDIRPATH | SFF_NOWLINK
156 sff |= SFF_NOLOCK;
157 if ((fd = safeopen(randfile, O_RDONLY, 0, sff)) >= 0)
420 ** sff -- flags for safefile()
428 tls_safe_f(var, sff, srv)
430 long sff;
435 if ((ret = safefile(var, RunAsUid, RunAsGid, RunAsUserName, sff,
490 ** sff -- flags for safefile()
501 # define TLS_SAFE_F(var, sff, re
557 long sff, status; local
[all...]
H A Dcontrol.c67 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_CREAT|SFF_MUSTOWN; local
80 sff, S_IRUSR|S_IWUSR, NULL);
176 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_CREAT|SFF_MUSTOWN; local
189 RunAsUserName, sff, S_IRUSR|S_IWUSR, NULL);
H A Dalias.c506 long sff = SFF_OPENASROOT|SFF_REGONLY|SFF_NOLOCK; local
516 sff |= SFF_NOWLINK;
518 sff |= SFF_NOGWFILES;
520 sff |= SFF_NOWWFILES;
523 if ((af = safefopen(map->map_file, O_RDWR, 0, sff)) == NULL)
528 (af = safefopen(map->map_file, O_RDONLY, 0, sff)) == NULL)
H A Dsavemail.c66 long sff; local
375 sff = SFF_CREAT|SFF_REGONLY|SFF_RUNASREALUID;
377 sff |= SFF_ROOTOK;
379 if (writable(dlbuf, NULL, sff) &&
380 mailfile(dlbuf, FileMailer, NULL, sff, e) == EX_OK)
416 sff = SFF_CREAT|SFF_REGONLY|SFF_ROOTOK|SFF_OPENASROOT|SFF_MUSTOWN;
417 if (!writable(DeadLetterDrop, NULL, sff) ||
419 FileMode, sff)) == NULL)
858 long sff = SFF_ROOTOK|SFF_REGONLY; local
861 sff |
[all...]
H A Dmap.c1411 long sff; local
1437 sff = SFF_ROOTOK|SFF_REGONLY;
1440 sff |= SFF_CREAT;
1442 sff |= SFF_NOSLINK;
1444 sff |= SFF_NOHLINK;
1450 sff |= SFF_NOWLINK;
1453 sff |= SFF_SAFEDIRPATH;
1455 sff, smode, &std);
1458 sff, smode, &stp);
1503 long sff
2005 long sff; variable
4399 long sff = SFF_OPENASROOT|SFF_ROOTOK|SFF_NOWLINK|SFF_NOWWFILES|SFF_NOGWFILES; local
5704 long sff; local
5813 long sff = map->map_sff; local
6003 long sff; local
7602 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_EXECOK; local
[all...]
H A Dbf.c69 # define OPEN(fn, omode, cmode, sff) open(fn, omode, cmode)
71 # define OPEN(fn, omode, cmode, sff) safeopen(fn, omode, cmode, sff)
H A Dusersmtp.c725 long sff; local
769 sff = SFF_REGONLY|SFF_SAFEDIRPATH|SFF_NOWLINK
774 sff |= SFF_NOGRFILES;
776 sff |= SFF_NOLOCK;
785 sff |= SFF_MUSTOWN;
788 sff |= SFF_OPENASROOT;
791 f = safefopen(filename, O_RDONLY, 0, sff);
1332 long sff; local
1341 sff = SFF_SAFEDIRPATH|SFF_NOWLINK|SFF_NOWWFILES|SFF_ROOTOK;
1354 sff |
[all...]
H A Dutil.c582 long sff; local
587 sff = SFF_NOLINK|SFF_ROOTOK|SFF_REGONLY|SFF_CREAT|SFF_NBLOCK;
589 sff |= SFF_OPENASROOT;
591 Pidf = safefopen(pidpath, O_WRONLY|O_TRUNC, FileMode, sff);
2026 int sff; local
2162 sff = SFF_ROOTOK|SFF_EXECOK;
2164 sff |= SFF_NOGWFILES|SFF_NOWWFILES;
2166 sff |= SFF_NOPATHCHECK;
2168 sff |= SFF_SAFEDIRPATH;
2169 ret = safefile(argv[0], DefUid, DefGid, DefUser, sff,
[all...]
H A Dqueue.c5945 ** sff -- flags for safefile()
5954 chkqdir(name, sff)
5956 long sff;
6004 i = safedirpath(name, RunAsUid, RunAsGid, NULL, sff, 0, 0);
6055 long sff = SFF_ANYFILE; local
6080 sff |= SFF_ROOTOK;
6082 sff |= SFF_SAFEDIRPATH|SFF_NOWWFILES;
6084 sff |= SFF_NOGWFILES;
6200 sff, 0, 0);
6237 if (!chkqdir(relpath, sff))
6790 long sff; local
6847 long sff, n; local
7134 long sff = SFF_CREAT; local
[all...]
H A Dreadcf.c105 long sff = SFF_OPENASROOT; local
129 sff |= SFF_NOLOCK;
130 cf = safefopen(cfname, O_RDONLY, 0444, sff);
945 long sff; local
1123 sff = SFF_REGONLY;
1125 sff |= SFF_SAFEDIRPATH;
1128 sff |= SFF_NOWLINK;
1130 sff |= SFF_OPENASROOT;
1132 sff |= SFF_ROOTOK;
1134 sff |
[all...]
H A Dconf.c963 long sff = SFF_REGONLY|SFF_OPENASROOT|SFF_NOLOCK; local
967 sff |= SFF_NOWLINK;
971 fp = safefopen(ServiceSwitchFile, O_RDONLY, 0, sff);
5651 int sff; local
5658 sff = SFF_REGONLY|SFF_OPENASROOT;
5660 sff |= SFF_NOLOCK;
5663 src = safeopen((char *)source, O_RDONLY, 0, sff);
5672 sff &= ~SFF_NOLOCK;
5673 sff |= SFF_CREAT;
5675 st.st_mode, sff);
[all...]
H A Ddaemon.c1068 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_ROOTOK|SFF_EXECOK|SFF_CREAT; local
1073 RunAsUserName, sff,
2925 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_ROOTOK|SFF_EXECOK; local
2930 sff, S_IRUSR|S_IWUSR, NULL);
3056 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_MUSTOWN|SFF_EXECOK|SFF_CREAT; local
3061 RunAsUserName, sff,
H A Ddeliver.c2368 int sff; local
2692 sff = SFF_ROOTOK|SFF_EXECOK;
2695 sff |= SFF_NOGWFILES|SFF_NOWWFILES;
2698 sff |= SFF_NOPATHCHECK;
2700 sff |= SFF_SAFEDIRPATH;
2702 user, sff, 0, NULL);
H A Dsrvrsmtp.c4903 long sff = SFF_OPENASROOT|SFF_REGONLY; local
4910 sff |= SFF_NOLOCK;
4912 sff |= SFF_SAFEDIRPATH;
4915 (hf = safefopen(HelpFile, O_RDONLY, 0444, sff)) == NULL)
H A Dmilter.c758 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_EXECOK; local
777 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,
/sendmail/editmap/
H A Deditmap.c95 long sff = SFF_ROOTOK|SFF_REGONLY; local
177 sff |= SFF_NOSLINK;
179 sff |= SFF_NOHLINK;
181 sff |= SFF_NOWLINK;
281 sff |= SFF_CREAT|SFF_NOTEXCL;
287 errno = smdb_open_database(&database, mapname, mode, smode, sff,
/sendmail/makemap/
H A Dmakemap.c98 long sff = SFF_ROOTOK|SFF_REGONLY; local
217 sff |= SFF_NOSLINK;
219 sff |= SFF_NOHLINK;
221 sff |= SFF_NOWLINK;
318 sff |= SFF_CREAT;
325 errno = smdb_open_database(&database, mapname, mode, smode, sff,
/sendmail/vacation/
H A Dvacation.c149 long sff; local
386 sff = SFF_CREAT;
391 sff |= SFF_OPENASROOT;
396 sff |= SFF_OPENASROOT|SFF_ROOTOK;
399 sff |= SFF_NOSLINK|SFF_NOHLINK|SFF_REGONLY;
405 S_IRUSR|S_IWUSR, sff,
/sendmail/libmilter/
H A Dlistener.c238 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_CREAT|SFF_MUSTOWN;
253 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,

Completed in 1033 milliseconds