Searched refs:chrootdir (Results 1 - 21 of 21) sorted by relevance

/freebsd-11-stable/contrib/unbound/daemon/
H A Dunbound.c495 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir);
504 /* true if pidfile is inside chrootdir, or nochroot */
505 pidinchroot = need_pidfile && (!(cfg->chrootdir && cfg->chrootdir[0]) ||
506 (cfg->chrootdir && cfg->chrootdir[0] &&
507 strncmp(cfg->pidfile, cfg->chrootdir,
508 strlen(cfg->chrootdir))==0));
568 if(cfg->chrootdir && cfg->chrootdir[
[all...]
H A Dremote.c2501 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir);
/freebsd-11-stable/contrib/blacklist/etc/rc.d/
H A Dblacklistd29 # Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword,
33 for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
/freebsd-11-stable/contrib/unbound/smallapp/
H A Dunbound-checkconf.c455 const char* chrootdir, struct config_file* cfg)
462 if(chrootdir && chrootdir[0])
464 "chrootdir %s", desc, str, chrootdir);
477 const char* chrootdir, struct config_file* cfg)
481 check_chroot_string(desc, &p->str, chrootdir, cfg);
488 const char* chrootdir, struct config_file* cfg)
502 check_chroot_string(desc, &p->str, chrootdir, cfg);
586 if(cfg->chrootdir
454 check_chroot_string(const char* desc, char** ss, const char* chrootdir, struct config_file* cfg) argument
476 check_chroot_filelist(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument
487 check_chroot_filelist_wild(const char* desc, struct config_strlist* list, const char* chrootdir, struct config_file* cfg) argument
[all...]
/freebsd-11-stable/usr.sbin/bsdinstall/distextract/
H A Ddistextract.c66 char *chrootdir; local
138 chrootdir = getenv("BSDINSTALL_CHROOT");
139 if (chrootdir != NULL && chdir(chrootdir) != 0) {
142 chrootdir, strerror(errno));
/freebsd-11-stable/usr.sbin/unbound/setup/
H A Dlocal-unbound-setup.sh43 chrootdir=""
83 chrootdir="${workdir}"
88 chrootdir=""
91 if [ -z "${chrootdir}" ] ; then
237 echo " chroot: ${chrootdir}"
/freebsd-11-stable/contrib/unbound/util/
H A Dlog.c86 log_init(const char* filename, int use_syslog, const char* chrootdir) argument
142 if(chrootdir && chrootdir[0] && strncmp(filename, chrootdir,
143 strlen(chrootdir)) == 0)
144 filename += strlen(chrootdir);
H A Dlog.h81 * @param chrootdir: to which directory we have been chrooted, if any.
83 void log_init(const char* filename, int use_syslog, const char* chrootdir);
H A Dconfig_file.c181 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit;
379 free(cfg->chrootdir);
380 cfg->chrootdir = NULL;
583 else S_STR("chroot:", chrootdir)
1031 else O_STR(opt, "chroot", chrootdir)
1488 free(cfg->chrootdir);
2178 if(cfg->chrootdir && cfg->chrootdir[0] &&
2179 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir))
[all...]
H A Dconfig_file.h303 /** chrootdir, if not "" or chroot will be done */
304 char* chrootdir; member in struct:config_file
H A Dconfigparser.y1139 free(cfg_parser->cfg->chrootdir);
1140 cfg_parser->cfg->chrootdir = $2;
/freebsd-11-stable/contrib/unbound/validator/
H A Dval_anchor.c1073 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm,
1074 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
1075 nm += strlen(cfg->chrootdir);
1086 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm,
1087 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
1088 nm += strlen(cfg->chrootdir);
[all...]
/freebsd-11-stable/contrib/unbound/iterator/
H A Diter_hints.c419 if(cfg->chrootdir && cfg->chrootdir[0] &&
420 strncmp(p->str, cfg->chrootdir,
421 strlen(cfg->chrootdir)) == 0)
422 f += strlen(cfg->chrootdir);
/freebsd-11-stable/contrib/unbound/dnstap/
H A Ddnstap.c138 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(p,
139 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
140 p += strlen(cfg->chrootdir);
H A Ddtstream.c352 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm,
353 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
354 nm += strlen(cfg->chrootdir);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dcmd_args.c85 chrootdir = OPT_ARG( JAILDIR );
H A Dntpd.c212 const char *chrootdir; /* directory to chroot to */ variable
1209 if (chrootdir ) {
1211 if (chdir(chrootdir)) {
1212 msyslog(LOG_ERR, "Cannot chdir() to `%s': %m", chrootdir);
1215 if (chroot(chrootdir)) {
1216 msyslog(LOG_ERR, "Cannot chroot() to `%s': %m", chrootdir);
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c128 char *chrootdir; variable
1503 chrootdir = NULL;
1533 (chrootdir = strtok(residue, " \t")) != NULL) {
1534 if (chrootdir[0] != '/')
1535 asprintf(&chrootdir, "%s/%s", pw->pw_dir, chrootdir);
1537 chrootdir = strdup(chrootdir); /* make it permanent */
1538 if (chrootdir == NULL)
1546 if (chrootdir
[all...]
/freebsd-11-stable/contrib/unbound/dnscrypt/
H A Ddnscrypt.c563 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(nm,
564 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
565 nm += strlen(cfg->chrootdir);
/freebsd-11-stable/contrib/ntp/include/
H A Dntpd.h568 extern const char *chrootdir; /* directory to chroot() to */
/freebsd-11-stable/contrib/unbound/services/
H A Dauthzone.c1500 if(cfg->chrootdir && cfg->chrootdir[0] &&
1501 strncmp(incfile, cfg->chrootdir,
1502 strlen(cfg->chrootdir)) == 0)
1503 incfile += strlen(cfg->chrootdir);
1572 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename,
1573 cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
1574 zfilename += strlen(cfg->chrootdir);
[all...]

Completed in 324 milliseconds