Home
last modified time | relevance | path

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

/titanic_50/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c192 smdb_open_database(database, db_name, mode, mode_mask, sff, type, user_info, in smdb_open_database() argument
198 long sff;
226 result = smdb_db_open(database, db_name, mode, mode_mask, sff,
245 sff, type, user_info, params);
318 smdb_lock_file(lock_fd, db_name, mode, sff, extension) in smdb_lock_file() argument
322 long sff;
333 *lock_fd = safeopen(file_name, mode & ~O_TRUNC, DBMMODE, sff);
432 smdb_setup_file(db_name, extension, mode_mask, sff, user_info, stat_info) in smdb_setup_file() argument
436 long sff;
451 sff, mode_mask, stat_info);
H A Dsmndbm.c486 smdb_ndbm_open(database, db_name, mode, mode_mask, sff, type, user_info, in smdb_ndbm_open() argument
492 long sff;
513 sff, user_info, &dir_stat_info);
518 sff, user_info, &pag_stat_info);
528 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
538 result = smdb_lock_file(&pag_fd, db_name, mode, sff,
H A Dsmdb1.c448 smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info, in smdb_db_open() argument
454 long sff;
484 sff, user_info, &stat_info);
493 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
H A Dsmdb2.c566 smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info, db_params) in smdb_db_open() argument
571 long sff;
601 mode_mask, sff, user_info, &stat_info);
611 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
/titanic_50/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c681 safeopen(fn, omode, cmode, sff) in safeopen() argument
685 long sff;
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))
732 omode |= O_CREAT | (bitset(SFF_NOTEXCL, sff) ? 0 : O_EXCL);
733 else if (bitset(SFF_CREAT, sff) && bitset(O_EXCL, omode))
[all …]
/titanic_50/usr/src/cmd/sendmail/src/
H A Dtls.c148 long sff; local
152 sff = SFF_SAFEDIRPATH | SFF_NOWLINK
157 sff |= SFF_NOLOCK;
158 if ((fd = safeopen(randfile, O_RDONLY, 0, sff)) >= 0)
402 tls_safe_f(var, sff, srv) in tls_safe_f() argument
404 long sff;
409 if ((ret = safefile(var, RunAsUid, RunAsGid, RunAsUserName, sff,
475 # define TLS_SAFE_F(var, sff, req, ex, st, srv) if (ex && ok) \ argument
477 r = tls_safe_f(var, sff, srv); \
531 long sff, status; local
[all …]
H A Dstats.c139 long sff = SFF_REGONLY|SFF_OPENASROOT; local
153 sff |= SFF_NOSLINK;
155 sff |= SFF_NOHLINK;
157 fd = safeopen(sfile, O_RDWR, 0600, sff);
H A Dcontrol.c69 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_CREAT|SFF_MUSTOWN; in opencontrolsocket() local
82 sff, S_IRUSR|S_IWUSR, NULL); in opencontrolsocket()
178 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_CREAT|SFF_MUSTOWN; local
191 RunAsUserName, sff, S_IRUSR|S_IWUSR, 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)
846 long sff = SFF_ROOTOK|SFF_REGONLY; local
849 sff |= SFF_NOLOCK;
[all …]
H A Dalias.c508 long sff = SFF_OPENASROOT|SFF_REGONLY|SFF_NOLOCK; local
518 sff |= SFF_NOWLINK;
520 sff |= SFF_NOGWFILES;
522 sff |= SFF_NOWWFILES;
525 if ((af = safefopen(map->map_file, O_RDWR, 0, sff)) == NULL)
530 (af = safefopen(map->map_file, O_RDONLY, 0, sff)) == NULL)
H A Dmap.c1416 long sff; local
1442 sff = SFF_ROOTOK|SFF_REGONLY;
1445 sff |= SFF_CREAT;
1447 sff |= SFF_NOSLINK;
1449 sff |= SFF_NOHLINK;
1455 sff |= SFF_NOWLINK;
1458 sff |= SFF_SAFEDIRPATH;
1460 sff, smode, &std);
1463 sff, smode, &stp);
1508 long sff = SFF_CREAT|SFF_OPENASROOT;
[all …]
H A Dusersmtp.c717 long sff; local
761 sff = SFF_REGONLY|SFF_SAFEDIRPATH|SFF_NOWLINK
766 sff |= SFF_NOGRFILES;
768 sff |= SFF_NOLOCK;
777 sff |= SFF_MUSTOWN;
780 sff |= SFF_OPENASROOT;
783 f = safefopen(filename, O_RDONLY, 0, sff);
1324 long sff; local
1333 sff = SFF_SAFEDIRPATH|SFF_NOWLINK|SFF_NOWWFILES|SFF_ROOTOK;
1346 sff |= SFF_NORFILES;
[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);
2027 int sff; local
2163 sff = SFF_ROOTOK|SFF_EXECOK;
2165 sff |= SFF_NOGWFILES|SFF_NOWWFILES;
2167 sff |= SFF_NOPATHCHECK;
2169 sff |= SFF_SAFEDIRPATH;
2170 ret = safefile(argv[0], DefUid, DefGid, DefUser, sff, 0, NULL);
H A Dbf.c71 # define OPEN(fn, omode, cmode, sff) open(fn, omode, cmode) argument
73 # define OPEN(fn, omode, cmode, sff) safeopen(fn, omode, cmode, sff) argument
H A Dqueue.c5930 chkqdir(name, sff) in chkqdir() argument
5932 long sff;
5980 i = safedirpath(name, RunAsUid, RunAsGid, NULL, sff, 0, 0);
6031 long sff = SFF_ANYFILE; local
6056 sff |= SFF_ROOTOK;
6058 sff |= SFF_SAFEDIRPATH|SFF_NOWWFILES;
6060 sff |= SFF_NOGWFILES;
6176 sff, 0, 0);
6213 if (!chkqdir(relpath, sff))
6242 if (chkqdir(subdir, sff)) \
[all …]
H A Dreadcf.c104 long sff = SFF_OPENASROOT; local
120 sff |= SFF_NOLOCK;
121 cf = safefopen(cfname, O_RDONLY, 0444, sff);
936 long sff; local
1114 sff = SFF_REGONLY;
1116 sff |= SFF_SAFEDIRPATH;
1119 sff |= SFF_NOWLINK;
1121 sff |= SFF_OPENASROOT;
1123 sff |= SFF_ROOTOK;
1125 sff |= SFF_NOLOCK;
[all …]
H A Dconf.c958 long sff = SFF_REGONLY|SFF_OPENASROOT|SFF_NOLOCK; local
962 sff |= SFF_NOWLINK;
966 fp = safefopen(ServiceSwitchFile, O_RDONLY, 0, sff);
5582 int sff; local
5589 sff = SFF_REGONLY|SFF_OPENASROOT;
5591 sff |= SFF_NOLOCK;
5594 src = safeopen((char *)source, O_RDONLY, 0, sff);
5603 sff &= ~SFF_NOLOCK;
5604 sff |= SFF_CREAT;
5606 st.st_mode, sff);
H A Ddaemon.c1067 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_ROOTOK|SFF_EXECOK|SFF_CREAT; local
1072 RunAsUserName, sff,
2918 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_ROOTOK|SFF_EXECOK; local
2923 sff, S_IRUSR|S_IWUSR, NULL);
3049 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_MUSTOWN|SFF_EXECOK|SFF_CREAT; in shutdown_daemon() local
3054 RunAsUserName, sff, in shutdown_daemon()
H A Ddeliver.c2366 int sff; local
2684 sff = SFF_ROOTOK|SFF_EXECOK;
2687 sff |= SFF_NOGWFILES|SFF_NOWWFILES;
2690 sff |= SFF_NOPATHCHECK;
2692 sff |= SFF_SAFEDIRPATH;
2694 user, sff, 0, NULL);
H A Dsrvrsmtp.c4879 long sff = SFF_OPENASROOT|SFF_REGONLY; local
4886 sff |= SFF_NOLOCK;
4888 sff |= SFF_SAFEDIRPATH;
4891 (hf = safefopen(HelpFile, O_RDONLY, 0444, sff)) == NULL)
H A Dmilter.c753 long sff = SFF_SAFEDIRPATH|SFF_OPENASROOT|SFF_NOLINK|SFF_EXECOK; local
772 errno = safefile(colon, RunAsUid, RunAsGid, RunAsUserName, sff,
/titanic_50/usr/src/cmd/sendmail/aux/
H A Deditmap.c97 long sff = SFF_ROOTOK|SFF_REGONLY; local
179 sff |= SFF_NOSLINK;
181 sff |= SFF_NOHLINK;
183 sff |= SFF_NOWLINK;
283 sff |= SFF_CREAT|SFF_NOTEXCL;
289 errno = smdb_open_database(&database, mapname, mode, smode, sff,
H A Dmakemap.c100 long sff = SFF_ROOTOK|SFF_REGONLY; local
219 sff |= SFF_NOSLINK;
221 sff |= SFF_NOHLINK;
223 sff |= SFF_NOWLINK;
316 sff |= SFF_CREAT;
323 errno = smdb_open_database(&database, mapname, mode, smode, sff,
/titanic_50/usr/src/cmd/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,
/titanic_50/usr/src/data/hwdata/
H A Dpci.ids26901 103c 12bc D530 sff(dc578av)